cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Still having issues uploading

From: Hoog, Carl <Carl.Hoog_at_maritz.com>
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.

<html>
 
<head>
<title>XXXXXXXX Upload Form</title>
</head>
 
<body>
<img src="../images/logo.gif">
<center>
 
 <hr>
 <h2>
  Please upload your files here.
 </h2>
 <hr><br>
</center>
<form enctype="multipart/form-data" action="
<https://dispatch.xxxxxxxxxx.com/scripts/cpshost.dll?PUBLISH>
https://dispatch.xxxxxxxxxx.com/scripts/cpshost.dll?PUBLISH"
method=post>
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="
<https://dispatch.xxxxxxxxxxx.com/users/destdir>
https://dispatch.xxxxxxxxxxx.com/users/destdir"><br>
<input type="submit" value="Upload">
</form>
</body>
 
</html>

 
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
"submit=Upload"
<https://dispatch.xxxxxxxx.com/scripts/cpshost.dll?PUBLISH>
https://dispatch.xxxxxxxxxxx.com/scripts/cpshost.dll?PUBLISH
 

 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 dispatch.xxxxxxxxxxxxxxxx.com port 443
== Info: Connected to dispatch.xxxxxxxxxxxxxxxxxxxx.com (111.111.111.11)
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:
== Info: subject: XXXXXXXXXXXXXXXXXX
rpa (c)00/CN=dispatch.xxxxxxxxxxxxxxxxxx.com
== Info: start date: 2003-07-29 00:00:00 GMT
== Info: expire date: 2004-08-13 23:59:59 GMT
== Info: common name: dispatch.xxxxxxxxxxxxxxxx.com (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: dispatch.xxxxxxxxxxxxxxx.com
00e5: Pragma: no-cache
00f7: Accept: */*
0104: Content-Length: 251
0119: Expect: 100-continue
012f: Content-Type: multipart/form-data; boundary=--------------------
016f: --------5d61f2b87dc5
0185:
<= 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"
005c:
005e: test.txt
0068: ------------------------------5d61f2b87dc5
0094: Content-Disposition: form-data; name="submit"
00c3:
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>
0008:
000a: <TITLE>Upload Status</TITLE>
0028:
002a: <BODY><BR><HR>
003a:
003c: </BODY>
0045:
0047: </HTML>
0050:
0052:
 
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