cURL / Mailing Lists / curl-users / Single Mail

curl-users

HTTPS post hangs

From: Dale Counts <dcounts_at_preferred.com>
Date: Fri, 25 Jan 2002 16:34:24 -0500

Hi

 I am making a HTTPS POST like
curl -m 60 -N -b headers.txt -L -o output.html -D batchheader.txt -F
"action=change_batch" -F "batchFile=\@filetoupload.txt" -F
"answer=$secret" -F "realanswer=$secret" -F "batchmode=Submit job"
https://secureURL/exec/Admin

The Server accepts and processes the data(most of the time) but curl
'hangs' receiving the output, trying to debug it with -v gives
______________
> POST /exec/Admin? HTTP/1.1
User-Agent: curl/7.9.3 (i686-pc-linux-gnu) libcurl 7.9.3 (OpenSSL
0.9.6c)
Host: secureURL
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Cookie: session=lotsof Secret Cookies
Content-Length: 1922
Expect: 100-continue
Content-Type: multipart/form-data;
boundary=curl8WLsiblEgUsh232g5RHeugVYymk
  % Total % Received % Xferd Average Speed Time
Curr.
                                 Dload Upload Total Current Left
Speed
100 7903 0 5979 100 1924 97 31 0:01:01 0:01:01
0:00:00 0
* Closing connection #0
curl: (28) Operation timed out with 5979 out of -1 bytes received
_____________________________________

the timeout -m 60 was set because it will hang forever(or a long time)
without it
in this example the 5979 bytes it received is how many it is supposed to
'curl: (28) Operation timed out with 5979 out of -1 bytes received'
is it really looking for -1 bytes or is that just part of the timeout
command
is it possible the server is holding the connection open??

any ideas

Thanks
Dale
Received on 2002-01-25