haneef
15 years agoNew Contributor
REST Request sending 2 requests for every invocation
Hi,
My REST service is based on Apache Wink and running in Tomcat.
Whenever I send a request via soapUI , it is sending 2 request. One of them doesn't have content type. Any idea why it is sending 2 requests. BTW I'm using soap ui 3.6.1 free version. I tunneled the requests and given below just the headers
First request headers: ( This is correct)
POST /AuditServer/rest/Validator/BatchMessage HTTP/1.1
Connection: close
Content-Type: application/xml
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 127.0.0.1:9080
Content-Length: 2681
Send request header (duplicate request without any content type , but this also sends content body)
POST /AuditServer/rest/Validator/BatchMessage HTTP/1.1
Host: 127.0.0.1:9080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2) Gecko
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
My REST service is based on Apache Wink and running in Tomcat.
Whenever I send a request via soapUI , it is sending 2 request. One of them doesn't have content type. Any idea why it is sending 2 requests. BTW I'm using soap ui 3.6.1 free version. I tunneled the requests and given below just the headers
First request headers: ( This is correct)
POST /AuditServer/rest/Validator/BatchMessage HTTP/1.1
Connection: close
Content-Type: application/xml
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 127.0.0.1:9080
Content-Length: 2681
Send request header (duplicate request without any content type , but this also sends content body)
POST /AuditServer/rest/Validator/BatchMessage HTTP/1.1
Host: 127.0.0.1:9080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2) Gecko
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive