curl / Mailing Lists / curl-library / Single Mail

curl-library

Consequent POST request issue

From: Sasikala Raju <sasikalaraju_at_commvault.com>
Date: Tue, 28 Mar 2017 21:15:02 +0000

Hi,

When we use the same curl handle to do multiple post request, second request's body is not sent to the server. Only first request works fine.
Could you please help here ? Below is the curl trace.

60420 eb40 03/28 13:05:51 755 == cURL Info: Found bundle for host xx.xxx.xx.com: 0x1da27f8280 [can pipeline]
60420 eb40 03/28 13:05:51 755 == cURL Info: Re-using existing connection! (#0) with host xx.xxx.xx.com
60420 eb40 03/28 13:05:51 755 == cURL Info: Connected to xx.xxx.xx.com port 80 (#0)
60420 eb40 03/28 13:05:51 755 == cURL Info: Server auth using Basic with user ''
60420 eb40 03/28 13:05:51 755 => Send header, 758 bytes (0x2f6)
60420 eb40 03/28 13:05:51 755 0000: POST /xxx/yy/ Ac
60420 eb40 03/28 13:05:51 755 0040: tion/Execute HTTP/1.1
60420 eb40 03/28 13:05:51 755 0057: Host: xx.xx.xx.com
60420 eb40 03/28 13:05:51 755 007c: Authorization:XXXXXXXXXX
60420 eb40 03/28 13:05:51 755 0097: Accept:application/xml
60420 eb40 03/28 13:05:51 755 00af: Authtoken:token
60420 eb40 03/28 13:05:51 755 02c1: Content-type:application/xml
60420 eb40 03/28 13:05:51 755 02df: Content-Length: 141 -> First post request's body
60420 eb40 03/28 13:05:51 755 02f4:
60420 eb40 03/28 13:05:51 755 => Send data, 141 bytes (0x8d)
60420 eb40 03/28 13:05:51 755 == cURL Info: upload completely sent off: 141 out of 141 bytes
60420 eb40 03/28 13:05:53 755 <= Recv header, 15 bytes (0xf)
60420 eb40 03/28 13:05:53 755 0000: HTTP/1.1 200
60420 eb40 03/28 13:05:53 755 <= Recv header, 33 bytes (0x21)
60420 eb40 03/28 13:05:53 755 0000: X-Content-Type-Options: nosniff
60420 eb40 03/28 13:05:53 755 <= Recv header, 33 bytes (0x21)
60420 eb40 03/28 13:05:53 755 0000: X-XSS-Protection: 1; mode=block
60420 eb40 03/28 13:05:53 755 <= Recv header, 85 bytes (0x55)
60420 eb40 03/28 13:05:53 755 0000: Set-Cookie: JSESSIONID=911E799DF5BAA5240D721D73139C546B; Path=/w
60420 eb40 03/28 13:05:53 755 0040: ebconsole; HttpOnly
60420 eb40 03/28 13:05:53 755 <= Recv header, 29 bytes (0x1d)
60420 eb40 03/28 13:05:53 755 0000: Server: Commvault WebServer
60420 eb40 03/28 13:05:53 755 <= Recv header, 37 bytes (0x25)
60420 eb40 03/28 13:05:53 755 0000: Date: Tue, 28 Mar 2017 20:05:53 GMT
60420 eb40 03/28 13:05:53 755 <= Recv header, 23 bytes (0x17)
60420 eb40 03/28 13:05:53 755 0000: X-Powered-By: ASP.NET
60420 eb40 03/28 13:05:53 755 <= Recv header, 17 bytes (0x11)
60420 eb40 03/28 13:05:53 755 0000: Pragma: Private
60420 eb40 03/28 13:05:53 755 <= Recv header, 41 bytes (0x29)
60420 eb40 03/28 13:05:53 755 0000: Cache-Control: private, must-revalidate
60420 eb40 03/28 13:05:53 755 <= Recv header, 45 bytes (0x2d)
60420 eb40 03/28 13:05:53 755 0000: Content-Type: application/xml;charset=utf-8
60420 eb40 03/28 13:05:53 755 <= Recv header, 20 bytes (0x14)
60420 eb40 03/28 13:05:53 755 0000: Content-Length: 99
60420 eb40 03/28 13:05:53 755 <= Recv header, 2 bytes (0x2)
60420 eb40 03/28 13:05:53 755 0000:
60420 eb40 03/28 13:05:53 755 <= Recv data, 99 bytes (0x63)
60420 eb40 03/28 13:05:53 755 0000: <App_GenericResp errorMessage="Error on line 1: Content is not a
60420 eb40 03/28 13:05:53 755 0040: llowed in prolog." errorCode="1" />
60420 eb40 03/28 13:05:53 755 == cURL Info: Curl_http_done: called premature == 0
60420 eb40 03/28 13:05:53 755 == cURL Info: Connection #0 to host xx.xxx.xx.com left intact

First post request failed for some reason

60420 eb40 03/28 13:05:53 755 == cURL Info: Found bundle for host xx.xxx.xx.com: 0x1da27f8280 [can pipeline]
60420 eb40 03/28 13:05:53 755 == cURL Info: Re-using existing connection! (#0) with xx.xxx.xx.com
60420 eb40 03/28 13:05:53 755 == cURL Info: Connected to xx.xxx.xx.com port 80 (#0)
60420 eb40 03/28 13:05:53 755 == cURL Info: Server auth using Basic with user ''
60420 eb40 03/28 13:05:53 755 => Send header, 756 bytes (0x2f4)
60420 eb40 03/28 13:05:53 755 0000: POST /xx/xxx/xx/Ac
60420 eb40 03/28 13:05:53 755 0040: tion/Execute HTTP/1.1
60420 eb40 03/28 13:05:53 755 0057: Host: xx.xxx.xx.com
60420 eb40 03/28 13:05:53 755 007c: Authorization:XXXXXXXXXX
60420 eb40 03/28 13:05:53 755 0097: Accept:application/xml
60420 eb40 03/28 13:05:53 755 00af: Authtoken:token
60420 eb40 03/28 13:05:53 755 02c1: Content-type:application/xml
60420 eb40 03/28 13:05:53 755 02df: Content-Length: 0 ->Second post request's body, which does not contain anything.
60420 eb40 03/28 13:05:53 755 02f2:
60420 eb40 03/28 13:05:53 755 <= Recv header, 15 bytes (0xf)
60420 eb40 03/28 13:05:53 755 0000: HTTP/1.1 200
60420 eb40 03/28 13:05:53 755 <= Recv header, 33 bytes (0x21)
60420 eb40 03/28 13:05:53 755 0000: X-Content-Type-Options: nosniff
60420 eb40 03/28 13:05:53 755 <= Recv header, 33 bytes (0x21)
60420 eb40 03/28 13:05:53 755 0000: X-XSS-Protection: 1; mode=block
60420 eb40 03/28 13:05:53 755 <= Recv header, 85 bytes (0x55)
60420 eb40 03/28 13:05:53 755 0000: Set-Cookie: JSESSIONID=D062B7615053BE4EA2DBE33A9942204F; Path=/w
60420 eb40 03/28 13:05:53 755 0040: ebconsole; HttpOnly
60420 eb40 03/28 13:05:53 755 <= Recv header, 29 bytes (0x1d)
60420 eb40 03/28 13:05:53 755 0000: Server: Commvault WebServer
60420 eb40 03/28 13:05:53 755 <= Recv header, 37 bytes (0x25)
60420 eb40 03/28 13:05:53 755 0000: Date: Tue, 28 Mar 2017 20:05:53 GMT
60420 eb40 03/28 13:05:53 755 <= Recv header, 23 bytes (0x17)
60420 eb40 03/28 13:05:53 755 0000: X-Powered-By: ASP.NET
60420 eb40 03/28 13:05:53 755 <= Recv header, 17 bytes (0x11)
60420 eb40 03/28 13:05:53 755 0000: Pragma: Private
60420 eb40 03/28 13:05:53 755 <= Recv header, 41 bytes (0x29)
60420 eb40 03/28 13:05:53 755 0000: Cache-Control: private, must-revalidate
60420 eb40 03/28 13:05:53 755 <= Recv header, 45 bytes (0x2d)
60420 eb40 03/28 13:05:53 755 0000: Content-Type: application/xml;charset=utf-8
60420 eb40 03/28 13:05:53 755 <= Recv header, 20 bytes (0x14)
60420 eb40 03/28 13:05:53 755 0000: Content-Length: 66
60420 eb40 03/28 13:05:53 755 <= Recv header, 2 bytes (0x2)
60420 eb40 03/28 13:05:53 755 0000:
60420 eb40 03/28 13:05:53 755 <= Recv data, 66 bytes (0x42)
60420 eb40 03/28 13:05:53 755 0000: <CVGui_GenericResp errorMessage="Incorrect Input" errorCode="1"
60420 eb40 03/28 13:05:53 755 0040: />
60420 eb40 03/28 13:05:53 755 == cURL Info: Curl_http_done: called premature == 0
60420 eb40 03/28 13:05:53 755 == cURL Info: Connection #0 to host cloud11.testlab
***************************Legal Disclaimer***************************
"This communication may contain confidential and privileged material for the
sole use of the intended recipient. Any unauthorized review, use or distribution
by others is strictly prohibited. If you have received the message by mistake,
please advise the sender by reply email and delete the message. Thank you."
**********************************************************************

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-03-28