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

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) :

Content-Type: text/xml;charset=UTF-8
SOAPAction: ""
Authorization: Basic X12345678ABCDEFGHIJKLMNOPRST=
Content-Length: 1200
Connection: Keep-Alive

Rexx POST message :
urp  = ""          
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: ")!!,    
 transasc("Authorization: Basic X12345678ABCDEFGHIJKLMNOPRST=" )!!,
 transasc("Content-Length: "!!uriLen!!" ")!!acrlf!!,                  
 transasc("Host: ")!!acrlf!!,              
 transasc("Connection: Keep-Alive ")!!acrlf!!,                        
Posts: 1
Joined: Tue Jul 26, 2016 2:11 pm
Has thanked: 0 time
Been thanked: 0 time

Return to CLIST & REXX


  • Related topics
    Last post