curl-users
RE: having troubles with -F option
Date: Sat, 2 Jun 2001 16:09:24 -0500
omg that was it.
thank you!
It makes perfect sense that I need to declare the Submit.
thanks again
-----Original Message-----
From: owner-curl_at_contactor.se [mailto:owner-curl_at_contactor.se]On Behalf
Of Daniel Stenberg
Sent: Saturday, June 02, 2001 1:37 PM
To: Curl Mailinglist
Subject: Re: having troubles with -F option
On Fri, 1 Jun 2001, Terry Davis wrote:
> Here is the command I am running:
> curl -F "custid=8888" -F "thefile=@/home/td/test.h"
> http://www.domain.com/cgi-bin/upfile.cgi
>
> Here is the html source of the form:
I removed everything that wasn't related to the actual form:
> <FORM METHOD=POST ENCTYPE="multipart/form-data"
> ACTION="./cgi-bin/upfile.cgi" >
> <INPUT TYPE="text" NAME="custid" ></TD>
> <INPUT TYPE=FILE NAME="thefile" ></TD>
> <INPUT TYPE=SUBMIT NAME="Submit" VALUE="Submit">
> </FORM>
> Thank you for any help on this.
Your command line looks fine, except that you didn't include '-F
"Submit=Submit"' which may or may not be important in this case.
Also, you didn't mention in what way your command line doesn't work.
-- Daniel Stenberg -- curl dude -- http://curl.haxx.se/Received on 2001-06-02