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

curl -d option and no data is send

From: Karin Mustermann <karin-muster-mann_at_web.de>
Date: Mon, 31 Mar 2008 16:29:34 +0200

Hi,

I´m trying to send data via post method to a webserver in my intranet
from the commandline with following options:

curl --data "pin=CP5&value=0&set=Submit" --digest -v --user admin:pass
xx.yy.zz

* About to connect() to xx.yy.zz port 80 (#0)
* Trying xx.yy.zz... connected
* Connected to xx.yy.zz (xx.yy.zz) port 80 (#0)
* Server auth using Digest with user 'admin'
> POST / HTTP/1.1
> User-Agent: curl/7.18.0 (i386-pc-win32) libcurl/7.18.0 OpenSSL/0.9.8g
zlib/1.2.3 libssh2/0.17
> Host: xx.yy.zz
> Accept: */*
> Content-Length: 0
> Content-Type: application/x-www-form-urlencoded
>
< HTTP/1.1 400 Bad Request: Invalid Content Length
< Connection: close
< Content-Type: text/html
< Content-Length: 169
<
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head>
<title>Error</title>
</head>
<body>
<b>400 Bad Request: Invalid Content Length</b><br/>
</body>
</html>
* Closing connection #0

I tried the -F option too, the output is the same. It seems that curl
does not include the data, my Content-Length is always 0.
If you need more information about my network or system, please let me
know.

Thank you for any help.
Received on 2008-03-31

These mail archives are generated by hypermail.

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

File upload with ASP.NET