cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

message not sent?

From: Nayeem Syed <nayeem_at_flightline.co.uk>
Date: Wed, 23 Feb 2005 09:19:58 +0000

If I set curl to verbose mode and try doing a post request I seem to be
getting "Expect: 100-continue" header added in place of my message body. As a
result I get nothing back from the server I connect to as it expects something
in the contents to parse and reply. Heres the curl verbose mode log :
> POST /~atx/cgi-bin/atx_cgi.cgi HTTP/1.1
Host: avrozulu.co.uk
Pragma: no-cache
Accept: */*
Content-Length: 1073
Content-Type: application/x-www-form-urlencoded
Expect: 100-continue

< HTTP/1.1 100 Continue
< HTTP/1.1 200 OK
< Date: Wed, 23 Feb 2005 09:13:40 GMT
< Server: Apache/2.0.45 (Red Hat Linux)
< Vary: Accept-Encoding
< Connection: close
< Transfer-Encoding: chunked
< Content-Type: text/xml
* Closing connection #0
Received on 2005-02-23