cURL / Mailing Lists / curl-users / Single Mail

curl-users

zero-length http post

From: jonatan <jonatan_at_wineasy.se>
Date: Sun, 4 Aug 2002 12:10:39 +0200

a minor issue:

making a zero-length http post with the curl binary requires a
work-around. the following don't work:

$ curl --data "" localhost
$ curl --form "" localhost

the following does however:

$ curl --request POST --header "Content-Length: 0" localhost

perhaps curl should support the first two as well.

this is with 7.9.8.

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-08-04