cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Newbie help

From: Matthew Singer <matt_at_finaldraftbooks.com>
Date: Sun, 13 Apr 2003 17:28:39 -0400

Dan,

This is what I am trying:

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"?

Matt

-----Original Message-----
From: curl-users-admin_at_lists.sourceforge.net
[mailto:curl-users-admin_at_lists.sourceforge.net] On Behalf Of Daniel Stenberg
Sent: Friday, April 11, 2003 2:36 AM
To: Curl Mailinglist
Subject: Re: Newbie help

On Thu, 10 Apr 2003, Matthew Singer wrote:

> I'm trying to automate some tasks to amazon.com, but I don't seem to
> be having any luck getting the correct curl syntax for these forms.

> Suggestions/hints please?

It needs you to be logged in, right? The site will track that somehow, most
likely with cookies.

> Input: NAME=" " VALUE=" " (HIDDEN)
> Input: NAME=" " VALUE=" " (HIDDEN)

These lines look odd and seem to indicate a problem with the formfind
script.

> --- type: multipart form upload [use -F]
> Input: NAME="customer_id" (HIDDEN)
> Select: NAME="FileType"
> Option VALUE="" (SELECTED)
> Option VALUE="TabDelimited"
> Option VALUE="UIEE"
> [end of select]
> Input: NAME="enable-expedited-shipping" VALUE="Y" (CHECKBOX)
> Input: NAME="ListingProgram" VALUE="ProMerchant" (RADIO)
> Input: NAME="ListingProgram" VALUE="HybridSDP" (RADIO)
> Input: NAME="ListingProgram" VALUE="PureSDP" (RADIO)
> Select: NAME="FileOperationType"
> Option VALUE="" (SELECTED)
> Option VALUE="AMD"
> Option VALUE="PR"
> Option VALUE="MD"
> [end of select]
> Input: NAME="UploadFileName" (FILE)
> Button: "" (IMAGE)

These ones looks like you can transform directly into a set of -F options.
What command lines/options have you tried that didn't work?

-- 
 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
-------------------------------------------------------
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-13