cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: sending a file with curl

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 24 Jan 2005 23:52:08 +0100 (CET)

On Mon, 24 Jan 2005 weather_at_lexmark.com wrote:

Please use a sensitble subject in mailing list posts.

This mailing list is for libcurl issues, I suggest using the curl-users
mailing list for issues with the curl command line tool.

Then you should read this: http://curl.haxx.se/docs/httpscripting.html

> <FORM ACTION="/ucf/submit"

This is the path part of the URL you should use to POST to.

> enctype="multipart/form-data"

This implies using -F, *not* -d.

> <input type="file" name="input_file">

And here you see the name of the file upload part: input_file

> C:\curl.exe --user UserID:password -d "name=list.rcf"
> http://157.184.108.41:10080/config/ucf/submit.html

-F input_file=@filename and a correct URL will probably be closer to working

Good luck!

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2005-01-24