curl-users
Re: New User - Help with https POST
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 17 Nov 2002 19:54:18 +0100 (MET)
Date: Sun, 17 Nov 2002 19:54:18 +0100 (MET)
On Fri, 15 Nov 2002, Mark Hill wrote:
> 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
Almost. Since the actual file upload is the field named 'Filename' and you
probably want to upload the local file 'MYFILE.TXT' you should make that -F
be "Filename=@MYFILE.TXT" using an @-letter to indicate that this should be
read from the file named MYFILE.TXT.
-- Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs. ------------------------------------------------------- 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.htmlReceived on 2002-11-17