Rexx TLS Socket programming



IBM's Command List programming language & Restructured Extended Executor

Rexx TLS Socket programming

Postby Alper » Tue Aug 06, 2019 2:12 pm

Hi,
I have rexx socket program it runs when spesific console message occure. But it runs via clear port 80. I want to change TLS port called 443 so I changed my code's POST header. I added some html tag. I tested SoapUI utility and succees to reach web server but I didnt success with rexx although same http tag like soapui. Netview retuned only "HTTP/1.1 400 Bad Request**" message. I pasted soapUI POST lines and rexx POST lines. I'll very greatful if any suggest or sample code. Thanks.

SoapUI POST message (RAW) :

POST https://xxxx.yyyy.com:443/ABC/Operations HTTP/1.1
Content-Type: text/xml;charset=UTF-8
SOAPAction: "http://tmporg.org/AddTicketByKeyword"
Authorization: Basic X12345678ABCDEFGHIJKLMNOPRST=
Content-Length: 1200
Host: xxxx.yyyy.com:443
Connection: Keep-Alive


Rexx POST message :
urp  = "https://xxxx.yyyy.com:443"          
urp  = urp!!"/ABC/Operations"  
acrlf = '0D'x!!'0A'x
httpreq= transasc("POST "!!urp!!" HTTP/1.1 ")!!acrlf!!,            
 transasc("Accept-Encoding: gzip,deflate ")!!acrlf!!,                  
 transasc("Content-Type: text/xml;charset=UTF-8 ")!!acrlf!!,          
 transasc("SOAPAction: http://tmp.org/Ticket ")!!,    
 acrlf!!,                                                              
 transasc("Authorization: Basic X12345678ABCDEFGHIJKLMNOPRST=" )!!,
 acrlf!!,                                                              
 transasc("Content-Length: "!!uriLen!!" ")!!acrlf!!,                  
 transasc("Host: xxxx.yyyy.com:443 ")!!acrlf!!,              
 transasc("Connection: Keep-Alive ")!!acrlf!!,                        
 transasc(uri)!!acrlf!!acrlf
Alper
 
Posts: 1
Joined: Tue Jul 26, 2016 2:11 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Rexx TLS Socket programming

 

Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post