curl-library
HTTPS POST Upload???
Date: Wed, 8 May 2002 15:50:17 +0200
Hi,
I'm working on uploading files on secure.someserver.com. I don't know how to verify that the file is uploaded.
Here is the trace.
curl -v -FuploadSubmit.x=-1 -FuploadSubmit.y=-1 -FuploadFormFil
e=@list11.doc -i -Dcookie.txt https://print2.kinkos.com/p2k/upload/UploadDocumen
t.action > error.html
* About to connect() to print2.kinkos.com:443
* Connected to print2.kinkos.com (170.170.3.142) port 443
* libcurl is now using a weak random seed!
* SSL connection using DES-CBC3-SHA
* Server certificate:
* subject: /C=US/ST=California/L=Ventura/O=Kinko's Inc./OU=Enterprise Ser
vices/CN=print2.kinkos.com
* start date: 2001-06-15 00:00:00 GMT
* expire date: 2002-06-15 23:59:59 GMT
* common name: print2.kinkos.com (matched)
* issuer: /C=US/O=RSA Data Security, Inc./OU=Secure Server Certification
Authority
> POST /p2k/upload/UploadDocument.action HTTP/1.1
User-Agent: curl/7.9.6 (win32) libcurl 7.9.6 (OpenSSL 0.9.6a)
Host: print2.kinkos.com
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Content-Length: 148852
Expect: 100-continue
Content-Type: multipart/form-data; boundary=curlUKoKRV5fNROdTyaXiKhQ770yWYj
% Total % Received % Xferd Average Speed Time Curr.
Dload Upload Total Current Left Speed
100 168k 0 23376 100 145k 825 5253 0:00:28 0:00:28 0:00:00 7693
* Closing connection #0
From all of this I can see that the file is probably uploaded, but when I connect on site UploadDocument.jsp I don't see my document. From IE6.0 this is working (uploading).
This is cookie.txt
HTTP/1.1 200 OK
Server: WebLogic 5.1.0 Service Pack 11 11/20/2001 08:39:10 #149952
Content-Type: text/html
Set-Cookie: kinkosCookie.kinkos.com=831919yLrCBlS8dkHYu2l9xJgQzTW_sWUoGkuf; domain=.kinkos.com; path=/
Set-Cookie: WebLogicSession=PNkqrBlt2SrlnRuMTsIsLUcX9A5WXC1Fov7ua1oTqOO52eLJiv68|-2111864581145816748/-1431698221/6/1819/1819/7002/7002/1819/-1; path=/
Connection: Close
Via: 1.1 170.170.3.142 (Alteon iSD-SSL/2.0)
When I download the file with:
curl -v -i -Dcookie.txt -bcookie.txt https://print2.kinkos.com/p2k/upload/UploadDocument.jsp > error.html
I don't get that file is uploaded. Is my curl command good, or the problem is somewhere with session IDs.
Thank you
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: bandwidth_at_sourceforge.net
Received on 2002-05-08