Originally posted by Serena Nichetti
Dear all,
I need to send the following HTTP request:
POST /dataexchange.asmx HTTP/1.1
Host: 127.0.0.1
Content-Type: text/xml; charset=utf-8
Content-Length: 290
SOAPAction: "
http://tempuri.org/GetWSVersion"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="
http://www.w3.org/2001/XMLSchema" xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetWSVersion xmlns="
http://tempuri.org/" />
</soap:Body>
</soap:Envelope>
I'm using the httppost command with {DEBUG 1} and I see that between the headers there are empty lines.
They are not accepted by the Web Server. It stops to read the headers at first empty line.
I'm running qdx5.6
tcl>httppost {{URL
http://127.0.0.1/DataExchange.asmx} {METHOD POST} {HEADERS {{Content-Type "text/xml; charset=utf-8"} {Content-Length 290} {SOAPAction "
http://tempuri.org/GetWSVersion"}}} {DATA {<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="
http://www.w3.org/2001/XMLSchema" xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/"><GetWSVersion xmlns="
http://tempuri.org/" /></soap:Body></soap:Envelope>}} {DEBUG 1}}
* About to connect() to 127.0.0.1 port 80 (#0)
* Trying 127.0.0.1... * connected
* Connected to 127.0.0.1 (127.0.0.1) port 80 (#0)
> POST /DataExchange.asmx HTTP/1.1
User-Agent: Quovadx CISAgent
Host: 127.0.0.1
Accept: */*
Content-Length: 290
SOAPAction:
http://tempuri.org/GetWSVersionFrom:
anonymous@unknown.comConnection: close
Content-Type: text/xml; charset=utf-8
Does it exist a way to send HTTP headers without empty line?
POST /DataExchange.asmx HTTP/1.1
User-Agent: Quovadx CISAgent
Host: 127.0.0.1
Accept: */*
Content-Length: 290
SOAPAction:
http://tempuri.org/GetWSVersionFrom:
anonymous@unknown.comConnection: close
Content-Type: text/xml; charset=utf-8
Thanks
Serena