Haxx ad

curl's project page on


cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Still having issues uploading

From: Hoog, Carl <>
Date: Fri, 23 Jul 2004 17:14:32 -0500

Shown below is the page with the form I'm trying to post to. I've
modified the urls in this email.

<title>XXXXXXXX Upload Form</title>
<img src="../images/logo.gif">
  Please upload your files here.
<form enctype="multipart/form-data" action="
File to process: <input name="my_file" type="file"><br>
File to process: <input name="my_file" type="file"><br>
File to process: <input name="my_file" type="file"><br>
Destination URL: <input name="TargetURL" value="
<input type="submit" value="Upload">

This is the statement that I've tried to use to set a file name to
upload and simulate pressing the "Upload" button. Again, I'm not
showing the real userid or password for obvious reasons.
curl --trace-ascii trace.log -u userid:password -F "my_file=test.txt" -F

 I get a connection to the destination with no problem but the Upload
does not occur. The following is the trace generated from the command.
No obvious error is present but the file does not appear on the
destination site. When using the page interactively, the HTML page at
the bottom of this e-mail is what appears but it also shows the file
name uploaded in the body of the page which is not present is this case.

== Info: About to connect() to port 443
== Info: Connected to (
port 111
== Info: successfully set certificate verify locations:
== Info: CAfile: /opt/iexpress/curl/share/curl/curl-ca-bundle.crt
CApath: none
== Info: SSL connection using RC4-MD5
== Info: Server certificate:
rpa (c)00/
== Info: start date: 2003-07-29 00:00:00 GMT
== Info: expire date: 2004-08-13 23:59:59 GMT
== Info: common name: (matched)
== Info: issuer: /C=US/O=RSA Data Security, Inc./OU=Secure Server
Certification Authority
== Info: SSL certificate verify ok.
== Info: Server auth using Basic with user 'userid'
=> Send header, 391 bytes (0x187)
0000: POST /scripts/cpshost.dll?PUBLISH HTTP/1.1
002c: Authorization: Basic hidden3D
0067: User-Agent: curl/7.11.1 (hppa2.0w-hp-hpux11.11) libcurl/7.11.1 O
00a7: penSSL/0.9.7d zlib/1.1.4
00c1: Host:
00e5: Pragma: no-cache
00f7: Accept: */*
0104: Content-Length: 251
0119: Expect: 100-continue
012f: Content-Type: multipart/form-data; boundary=--------------------
016f: --------5d61f2b87dc5
<= Recv header, 23 bytes (0x17)
0000: HTTP/1.1 100 Continue
<= Recv header, 37 bytes (0x25)
0000: Date: Fri, 23 Jul 2004 22:02:54 GMT
=> Send data, 251 bytes (0xfb)
0000: ------------------------------5d61f2b87dc5
002c: Content-Disposition: form-data; name="my_file"
005e: test.txt
0068: ------------------------------5d61f2b87dc5
0094: Content-Disposition: form-data; name="submit"
00c5: Upload
00cd: ------------------------------5d61f2b87dc5--
<= Recv header, 17 bytes (0x11)
0000: HTTP/1.1 200 OK
<= Recv header, 37 bytes (0x25)
0000: HTTP/1.1 200 OK
<= Recv header, 37 bytes (0x25)
0000: Date: Fri, 23 Jul 2004 22:02:54 GMT
<= Recv header, 20 bytes (0x14)
0000: Content-Length: 84
<= Recv header, 25 bytes (0x19)
0000: Content-Type: text/html
<= Recv header, 24 bytes (0x18)
0000: Connection: Keep-Alive
<= Recv data, 84 bytes (0x54)
0000: <HTML>
000a: <TITLE>Upload Status</TITLE>
002a: <BODY><BR><HR>
003c: </BODY>
0047: </HTML>
Thanks for any insight you can provide.

Carl Hoog

Confidentiality Warning: This e-mail contains information intended only for the use of the individual or entity named above. If the reader of this e-mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient, any dissemination, publication or copying of this e-mail is strictly prohibited. The sender does not accept any responsibility for any loss, disruption or damage to your data or computer system that may occur while using data contained in, or transmitted with, this e-mail. If you have received this e-mail in error, please immediately notify us by return e-mail. Thank you.
Received on 2004-07-24

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET