Haxx ad

curl's project page on


cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

cURL command line https download problem

From: rajeshwari Viswannathan <>
Date: Fri, 27 Mar 2009 14:57:31 -0500


I need to login to a https site with user and password. It brings up a new
page wherein I need to click an item, say 'sent', which in turn will give me
another page. There are files under this page which I need to download.

I tried using the cURL command line.
This is in Korn

/opt/sfw/bin/curl -k --proxy \
 -A "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
Gecko/2009021910 Firefox/3.0.7" \
--trace traceamex_https19.txt -o myhtml19 -c cookies_amex00.txt -3

/opt/sfw/bin/curl -k --proxy \
 -A "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
Gecko/2009021910 Firefox/3.0.7" \
--trace traceamex_https20.txt -o myhtml20 -d
-L \
-e -3 -b cookies_amex00.txt -c cookies_amex11.txt

It always gets the login page. It does not get the 2ndpage at all. It does
not create any cookies at all. It creates the myhtml19. That is the login
page. It does not create the 2nd page with the sent item.

The post is not happening.

I have set the user-agent, proxy

I have checked in Firefox. After it logs in, it creates the cookie file,
when I login manually.

Pl. do help me.

I need to automate this.


List admin:
Received on 2009-03-27

These mail archives are generated by hypermail.

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

File upload with ASP.NET