cURL / Mailing Lists / curl-library / Single Mail


Multi-Part form with blank filenames.

From: <>
Date: Mon, 15 Sep 2003 18:57:04 -0400


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/" -F "img1=@1x1.gif" -F "img2="

Content-Disposition: form-data; name="img2"

Both Netscape and IE produce something like this.

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 email is sponsored by:ThinkGeek
Welcome to geek heaven.
Received on 2003-09-16