13 years ago
HTTP Monitor always inserts Transfer-Encoding: chunked
soapUI 4.5.1 Build [internal], Build Date 2012/06/27 13:56
Testing inbound request and outbound response with TCPmon (without soapUI) works OK.
Testing the same request with HTTP Monitor returns HTTP error 411 Length required.
It seems soapUI ignores Content-Length present in inbound request and substitutes Transfer-Encoding: chunked.
This is regardless of preferences – I’ve tried Chunking Threshold 0, blank, -1 and 999999999 but it makes no difference.
Inbound request:
POST /services/security/findMobileGroup HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS .NET CF Web Services Client Protocol 3.5.7283.0)
Cache-Control: No-Transform
SOAPAction: "findMobileGroup"
Content-Type: text/xml; charset=utf-8
Content-Length: 625
Connection: Keep-Alive
Expect: 100-continue
Host: 127.0.0.1:8081
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap
etc.
HTTP log shows:
Thu Mar 21 11:24:51 CET 2013:DEBUG:>> "POST http://127.0.0.1:8083/ HTTP/1.1[\r][\n]"
Thu Mar 21 11:24:51 CET 2013:DEBUG:>> "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS .NET CF Web Services Client Protocol 3.5.7283.0)[\r][\n]"
Thu Mar 21 11:24:51 CET 2013:DEBUG:>> "Cache-Control: No-Transform[\r][\n]"
Thu Mar 21 11:24:51 CET 2013:DEBUG:>> "SOAPAction: "findMobileGroup"[\r][\n]"
Thu Mar 21 11:24:51 CET 2013:DEBUG:>> "Content-Type: text/xml; charset=utf-8[\r][\n]"
Thu Mar 21 11:24:51 CET 2013:DEBUG:>> "Connection: Keep-Alive[\r][\n]"
Thu Mar 21 11:24:51 CET 2013:DEBUG:>> "Expect: 100-continue[\r][\n]"
Thu Mar 21 11:24:51 CET 2013:DEBUG:>> "Transfer-Encoding: chunked[\r][\n]"
Thu Mar 21 11:24:51 CET 2013:DEBUG:>> "Host: 127.0.0.1:8083[\r][\n]"
Thu Mar 21 11:24:51 CET 2013:DEBUG:>> "Proxy-Connection: Keep-Alive[\r][\n]"
Thu Mar 21 11:24:51 CET 2013:DEBUG:>> "[\r][\n]"
Thu Mar 21 11:24:51 CET 2013:DEBUG:<< "HTTP/1.1 411 Length Required[\r][\n]"
Testing inbound request and outbound response with TCPmon (without soapUI) works OK.
Testing the same request with HTTP Monitor returns HTTP error 411 Length required.
It seems soapUI ignores Content-Length present in inbound request and substitutes Transfer-Encoding: chunked.
This is regardless of preferences – I’ve tried Chunking Threshold 0, blank, -1 and 999999999 but it makes no difference.
Inbound request:
POST /services/security/findMobileGroup HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS .NET CF Web Services Client Protocol 3.5.7283.0)
Cache-Control: No-Transform
SOAPAction: "findMobileGroup"
Content-Type: text/xml; charset=utf-8
Content-Length: 625
Connection: Keep-Alive
Expect: 100-continue
Host: 127.0.0.1:8081
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap
etc.
HTTP log shows:
Thu Mar 21 11:24:51 CET 2013:DEBUG:>> "POST http://127.0.0.1:8083/ HTTP/1.1[\r][\n]"
Thu Mar 21 11:24:51 CET 2013:DEBUG:>> "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS .NET CF Web Services Client Protocol 3.5.7283.0)[\r][\n]"
Thu Mar 21 11:24:51 CET 2013:DEBUG:>> "Cache-Control: No-Transform[\r][\n]"
Thu Mar 21 11:24:51 CET 2013:DEBUG:>> "SOAPAction: "findMobileGroup"[\r][\n]"
Thu Mar 21 11:24:51 CET 2013:DEBUG:>> "Content-Type: text/xml; charset=utf-8[\r][\n]"
Thu Mar 21 11:24:51 CET 2013:DEBUG:>> "Connection: Keep-Alive[\r][\n]"
Thu Mar 21 11:24:51 CET 2013:DEBUG:>> "Expect: 100-continue[\r][\n]"
Thu Mar 21 11:24:51 CET 2013:DEBUG:>> "Transfer-Encoding: chunked[\r][\n]"
Thu Mar 21 11:24:51 CET 2013:DEBUG:>> "Host: 127.0.0.1:8083[\r][\n]"
Thu Mar 21 11:24:51 CET 2013:DEBUG:>> "Proxy-Connection: Keep-Alive[\r][\n]"
Thu Mar 21 11:24:51 CET 2013:DEBUG:>> "[\r][\n]"
Thu Mar 21 11:24:51 CET 2013:DEBUG:<< "HTTP/1.1 411 Length Required[\r][\n]"