cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

More Problems with 7.17.1 on Solaris 2.6

From: Georg Horn <horn_at_koblenz-net.de>
Date: Wed, 05 Dec 2007 16:32:02 +0100

Hi,

curl version 7.17.1 does not do POST-Request properly on Solaris 2.6

$ src/curl -v -d 'x=1&y=2' http://localhost/cgi-bin/test-cgi
* About to connect() to localhost port 80 (#0)
* Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 80 (#0)
> POST /cgi-bin/test-cgi HTTP/1.1
> User-Agent: curl/7.17.1 (sparc-sun-solaris2.6) libcurl/7.17.1
OpenSSL/0.9.7h zlib/1.1.3
> Host: localhost
> Accept: */*
> Content-Length: 0
> Content-Type: application/x-www-form-urlencoded
>
< HTTP/1.1 200 OK
< Date: Wed, 05 Dec 2007 15:27:09 GMT
< Server: Apache
< Transfer-Encoding: chunked
< Content-Type: text/plain
<
CGI/1.0 test script report:

argc is 0. argv is .

SERVER_SOFTWARE = Apache
SERVER_NAME = lsmonitor1.de.db.com
GATEWAY_INTERFACE = CGI/1.1
SERVER_PROTOCOL = HTTP/1.1
SERVER_PORT = 80
HTTP_ACCEPT = */*
PATH_INFO =
PATH_TRANSLATED =
SCRIPT_NAME = /cgi-bin/test-cgi
REQUEST_METHOD = POST
QUERY_STRING =

REMOTE_HOST =
REMOTE_ADDR = 127.0.0.1
REMOTE_USER =
AUTH_TYPE =
CONTENT_TYPE = application/x-www-form-urlencoded
CONTENT_LENGTH = 0

I think the error is that the Content-Length-header ist set to 0 when
sending the request, so the webserver does not pass the posted data to
the cgi-script. 7.16.4 works fine. Unfortunately i hadn't the time do
debug this, so i went back to version 7.16.4, but at least i wanted to
report the problem.

Bye,
Georg
Received on 2007-12-05

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET