cURL / Mailing Lists / curl-users / Single Mail

curl-users

Problem with curl redirect

From: Salgar, Gowtam <Gowtam_Salgar_at_adp.com>
Date: Tue, 15 Dec 2009 14:56:56 -0500

Hello,

I am trying to upload a file using curl7.19.7 windows version and have problem with redirect.

When I upload the test file directly from browser I get

                HTTP/1.1 100 Continue
                Server: Microsoft-IIS/5.0
                Date: Tue, 15 Dec 2009 19:48:02 GMT
                PICS-Label: (PICS-1.0 "http://www.rsac.org/ratingsv01.html" l on "2004.06.16T05:59-0500" exp "2005.06.16T12:00-0500" r (v 0 s 0 n 0 l 0))
                X-Powered-By: ASP.NET

                HTTP/1.1 302 Object moved
                Server: Microsoft-IIS/5.0
                Date: Tue, 15 Dec 2009 19:48:31 GMT
                PICS-Label: (PICS-1.0 "http://www.rsac.org/ratingsv01.html" l on "2004.06.16T05:59-0500" exp "2005.06.16T12:00-0500" r (v 0 s 0 n 0 l 0))
                X-Powered-By: ASP.NET
                Location: a3w2bmBulk_filelist.asp
                Content-Length: 144
                Content-Type: text/html
                Expires: Mon, 14 Dec 2009 19:48:02 GMT
                Cache-control: no-cache

But when I upload from curl with the command below.

C:/Downloads/curl7.19.7/curl-7.19.7/curl-7.19.7-ssl-sspi-zlib-static-bin-w32/curl -o C:/PROJECTS/ABC/output/step08.html -b C:/PROJECTS/Al-W2/output/ALW2_cookie.txt -c C:/PROJECTS/ABC/output/ALW2_cookie.txt -v -i -k -L -e https://xyz./a3w2bmBulk_Upload.asp -F txtFile="@C:/PROJECTS/Al-W2/abc.txt" https://xyz/a3w2bmBULK_upload.asp

I just get a return code of 100 and it ends. Below is the console.

> Content-Type: multipart/form-data; boundary=----------------------------afe442
563ad0
>
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
  0 1394k 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0<
HTTP/1.1 100 Continue
< Server: Microsoft-IIS/5.0
< Date: Tue, 15 Dec 2009 19:43:55 GMT
< PICS-Label: (PICS-1.0 "http://www.rsac.org/ratingsv01.html" l on "2004.06.16T0
5:59-0500" exp "2005.06.16T12:00-0500" r (v 0 s 0 n 0 l 0))
< X-Powered-By: ASP.NET
} [data not shown]
 99 1394k 0 0 99 1392k 0 91883 0:00:15 0:00:15 --:--:-- 132k<
HTTP/1.1 200 OK
< Server: Microsoft-IIS/5.0
< Date: Tue, 15 Dec 2009 19:44:10 GMT
< PICS-Label: (PICS-1.0 "http://www.rsac.org/ratingsv01.html" l on "2004.06.16T0
5:59-0500" exp "2005.06.16T12:00-0500" r (v 0 s 0 n 0 l 0))
< X-Powered-By: ASP.NET
< Content-Length: 5177
< Content-Type: text/html
< Expires: Mon, 14 Dec 2009 19:43:56 GMT
< Cache-control: no-cache
<
{ [data not shown]
100 1399k 101 5177 100 1394k 326 90141 0:00:15 0:00:15 --:--:-- 126k*
Connection #0 to host aldor.efile.govconnect.com left intact

* Closing connection #0
* SSLv3, TLS alert, Client hello (1):
} [data not shown]

Thanks and Have a Great Day
Gowtam Salgar
Integration Services
(909) 592.6411 ext. 3358

----------------------------------------------------------------------
This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, notify the sender immediately by return email and delete the message and any attachments from your system.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-12-15