curl-users
Re: Newbie help
Date: Fri, 11 Apr 2003 08:36:17 +0200 (CEST)
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.comReceived on 2003-04-11