curl-users
Emtpy filename on form-data post
Date: Wed, 16 Feb 2005 13:56:53 -0700 (MST)
Hello,
I'm trying to script the following:
-----------------------------23010741916212
Content-Disposition: form-data; name="bindingsFile"; filename=""
Content-Type: application/octet-stream
This does not work:
$ curl -F 'bindingsFile=@;type=application/octet-stream' 127.0.0.1
curl: (26) failed creating formpost data
The closest I've come to matching the above was:
$ curl -F 'bindingsFile=@/dev/null;type=application/octet-stream' 127.0.0.1
which produced:
-----------------------------23010741916212
Content-Disposition: form-data; name="bindingsFile"; filename="null"
Content-Type: application/octet-stream
Anyone know how to produce a blank filename field ? Any plans for adding this
feature ?
Thanks,
Kristis
Received on 2005-02-16