curl-users
Still having Upload blues...
Date: Mon, 2 Jul 2001 11:01:45 -0500
I have captured the HTTP Header info to try to assist in trouble shooting my
upload issues. I am still able to upload a file to HTTP manually but not
using cURL.
Below is the information I captured in the header info of each attempt:
*** cURL ***
<html>
<body>
C:\Temp>curl -F File1=@c:\temp\test.txt -F "submit=Upload"
myserver.com/upload/Example1.asp
<form method="POST" action="Example1.Asp" enctype="multipart/form-data">
Select a file to upload: <input type="file" name="File1" size="30">
<input type="submit" name="Upload" value="Upload">
</form>
HTTP_ACCEPT:image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
HTTP_HOST:myserver.com
HTTP_USER_AGENT:curl/7.8 (win32) libcurl 7.8
HTTP_PRAGMA:no-cache
HTTP_CONTENT_LENGTH:357
HTTP_CONTENT_TYPE:multipart/form-data;
boundary=curl4Igs9YONesuRfFTW1U2AHydI1RB
</body>
</html>
*** Manual ***
<html>
<body>
File successfully written to disk.
<form method="POST" action="Example1.Asp" enctype="multipart/form-data">
Select a file to upload: <input type="file" name="File1" size="30">
<input type="submit" name="Upload" value="Upload">
</form>
HTTP_ACCEPT:image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
*/*
HTTP_ACCEPT_LANGUAGE:en-us
HTTP_CONNECTION:Keep-Alive
HTTP_HOST:myserver.com
HTTP_REFERER:http://myserver.com/upload/Example1.asp
HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
HTTP_PRAGMA:no-cache
HTTP_COOKIE:ASPSESSIONIDQGGGQJDK=HBGMPLDACJIBMIADAHKGLDEN
HTTP_CONTENT_LENGTH:378
HTTP_CONTENT_TYPE:multipart/form-data;
boundary=---------------------------7d1dbf603ca
</body>
</html>
*********************************
I am rather stuck at the moment. If anyone can help please let me know.
Chad Hampy
Received on 2001-07-02