cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Newbie help

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 14 Apr 2003 09:09:52 +0200 (CEST)

On Sun, 13 Apr 2003, Matthew Singer wrote:

> curl -v -F "FileType=UIEE" -F "enable-expedited-shipping=Y" -F
> "ListingProgram=ProMerchant" -F "FileOperationType=AMD" -F
> "UploadFileName=c:/uiee.msg"

> https://secure.amazon.com/exec/panama/seller-admin/catalog-upload/catalog-up
> load-now
>
> Do I need to do something with "Button"?

No, if the data has no "value" set it isn't passed along in the formpost.

But:

> > Input: NAME="UploadFileName" (FILE)

This is where you should pass the file instead of the file name. Thus, you
need to replace the final -F with something like:

        -F UploadFileName=@c:/uiee.msg

The additional '@'-letter tells curl to get the contents from the given file
instead of using the plain name.

(Yes, one day we should add an option to 'formfind' that displays the correct
corresponding -F option usage.)

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
Received on 2003-04-14