cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: using cookies

From: Alexander Lazic <al-curlusers_at_none.at>
Date: Mon, 5 Jun 2006 10:33:05 +0200

Hi,

On Mon 05.06.2006 01:18, harpreet handa wrote:
>
>I autheticate myself to a page using curl...now i want to use existing
>cookies to visit more pages without reauthenticate myself.How do I send
>existing cookies with new request so that I dont have to provide login
>name and password again with curl?

man curl => --cookie-jar
man curl => COOKIES
http://curl.haxx.se/docs/httpscripting.html => 10. Cookies

i would try:

curl -c cookies.txt www.example.com

as you can see in the manpage ;-)

Hth

regards

Alex
Received on 2006-06-05