curl-users
having troubles with -F option
Date: Fri, 01 Jun 2001 15:18:03 -0500
Hello!
This program is going to save my butt here. :)
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:
=====================START====================
<FORM METHOD=POST ENCTYPE="multipart/form-data"
ACTION="./cgi-bin/upfile.cgi" >
<center>
<TABLE BORDER=2 CELLPADDING=4 CELLSPACING=0>
<TR ALIGN=CENTER>
<TD BGCOLOR=black>
<B><FONT COLOR=white>Upload Customer
Data File</FONT></A></B>
</TD>
</TR>
<TR ALIGN=CENTER>
<TD BGCOLOR=#EEEEEE>
<BR>Enter Customer ID<BR>
<INPUT TYPE="text" NAME="custid" ></TD>
</TR>
<TR ALIGN=CENTER>
<TD BGCOLOR=#EEEEEE>
<BR>Select Data File<BR>
<INPUT TYPE=FILE NAME="thefile" ></TD>
</TR>
<TR ALIGN=CENTER>
<TD BGCOLOR=#EEEEEE>
<INPUT TYPE=SUBMIT NAME="Submit"
VALUE="Submit">
</TD>
</TR>
</TABLE>
</center>
</FORM>
====================STOP=========================
Thank you for any help on this.
-- Terry Davis Systems Administrator BirdDog Solutions, Inc. 2102 N 117th Ave Omaha, NE 68164 voice: (402) 829-6059 fax: (402) 829-6199 pager: (877) 973-6995 tdavis_at_birddog.com www.birddog.comReceived on 2001-06-01