curl-library
Multi-Part form with blank filenames.
Date: Mon, 15 Sep 2003 18:57:04 -0400
Hi,
I am trying to post a form that is giving me trouble. Its a multi part with multiple image uploads. The problem happens when I leave one of the optional image fields blank.
Curl produces something like this.
c:\curl\curl.exe --url "http://testserver/test.pl" -F "img1=@1x1.gif" -F "img2="
------------------------------f27aeac4ef31
Content-Disposition: form-data; name="img2"
Both Netscape and IE produce something like this.
-----------------------------297751839010082
Content-Disposition: form-data; name="img2"; filename=""
Content-Type: application/octet-stream
The server is IIS/.aspx so im sure thats why there is a problem, but it seems like curl should do the same as a browser.
-F "img1=@;type=application/octet-stream"
Any Ideas?
Thanks Dave...
P.S. I am using libcurl 7.10.7 with custom perl mod and curl.exe for testing.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-09-16