cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: POST to IIS/5.0 fails

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 19 Feb 2003 23:34:46 +0100 (CET)

On Tue, 18 Feb 2003 Jeromme_Lawler_at_xtoenergy.com wrote:

> I am having the same issue.

Not really. Your command line failed too, yes, but you're not experiencing
the same symthoms.

> Here is my syntax:
>
> curl -F "File1"="C%3A%5Cgood.exe" -F "Action"="Upload+the+file"
> http://172.17.17.217/scripts/u.asp

I bet you want it to be:

 curl -F "File1"="@C%3A%5Cgood.exe" -F "Action"="Upload+the+file"
 http://172.17.17.217/scripts/u.asp

Notice the extra @-letter to signal it should read the file with the given
name.

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
Received on 2003-02-19