curl-users
New User - Help with https POST
Date: Fri, 15 Nov 2002 12:51:12 -0600
Hi All,
I am attempting to post a file to a https site, the HTML looks like below.
Does this look like it should work?
curl -v -F "UserId=myname" -F "Password=mypasswd" -F "UploadType=P" -F
"VersionNumber=V4R1" -F "ResponseType=TEXT/HTML" -F "AppVersion=2.0" -F
"AcceptLicenseAgreement=YES" -F "Flags=1111111" -F "Filename=MYFILE.TXT" -F
"hmuPUSSubmitBtn=Upload File" https://www.pld.ups.com/ha/cgi-bin/kdwstrp2
<FORM NAME="hmuPUSForm" ACTION="https://www.pld.ups.com/ha/cgi-bin/kdwstrp2"
METHOD="Post" ENCTYPE=multipart/form-data>
<TABLE BORDER="0" WIDTH="600" CELLPADDING="0" CELLSPACING="0">
<TR>
<TD WIDTH="100" HEIGHT="20" ><BR></TD>
<TD WIDTH="500" ><font face="minion web" color="#999966"
size="5"><B>Upload</B></font></TD>
</TR>
<TR>
<TD WIDTH="100" HEIGHT="30" ><BR></TD>
</TR>
<TR>
<TD WIDTH="100" ><BR></TD>
<TD WIDTH="500" ><IMG BORDER="0" WIDTH="450" HEIGHT="11"
SRC="/ha/content/images/ua_form_top.gif" VSPACE="5"></TD>
</TR>
<TR>
<TD WIDTH="100" ><BR></TD>
<TD WIDTH="500" >
<TABLE>
<TR>
<TD WIDTH="100" VALIGN="Top" >Enter Path and Filename:<INPUT
VALUE="myname" TYPE="HIDDEN" NAME="UserId"><INPUT VALUE="mypasswd"
TYPE="HIDDEN" NAME="Password"><INPUT VALUE="P" TYPE="HIDDEN"
NAME="UploadType"><INPUT VALUE="V4R1" TYPE="HIDDEN"
NAME="VersionNumber"><INPUT VALUE="TEXT/HTML" TYPE="HIDDEN"
NAME="ResponseType"><INPUT VALUE="2.0" TYPE="HIDDEN"
NAME="AppVersion"><INPUT VALUE="YES" TYPE="HIDDEN"
NAME="AcceptLicenseAgreement"><INPUT VALUE="1111111" TYPE="HIDDEN"
NAME="PUFFFlags"></TD>
<TD WIDTH="400" ><INPUT TYPE="FILE" NAME="Filename" SIZE="25"></TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD WIDTH="100" ><BR></TD>
<TD WIDTH="500" >
<TABLE>
<TR>
<TD WIDTH="100" ><BR></TD>
<TD WIDTH="400" ><INPUT VALUE="Upload File" TYPE="BUTTON"
NAME="hmuPUSSubmitBtn" onClick=submit()></TD>
Thanks for any thoughts or suggestions!
Mark
-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing
your web site with SSL, click here to get a FREE TRIAL of a Thawte
Server Certificate: http://www.gothawte.com/rd524.html
Received on 2002-11-15