curl-users
Re: having troubles with -F option
Date: Sat, 2 Jun 2001 20:36:56 +0200 (MET DST)
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