cURL / Mailing Lists / curl-library / Single Mail

curl-library

How to use cookies

From: Ajay Kale <ajayk_at_geometricsoftware.com>
Date: Tue, 26 Feb 2002 14:32:30 +0530

Hi,

I am a new comer to the curl community. I want to do the following things
using curl:

 I want to download a file from URL say "https://aatma/download/test.bin"
The URL is protected by userid and password. For user id and password
validation another site say "https://meghadut is used. Whenever I access URL
"https://aatma/download/test.bin" it first takes me to URL
"https://meghadut" for authentication and then redirects me to the request
page.

After Authentication I want to store the cookie and send it with every
subsequent request.

Can anybody guide me on how to store cookies and use it afterwards and
follow redirects using curl ?

Your help is highly appreciated.

Thanks in advance.

regards,
Ajay

Ph. 91-20-4101872 ext 332
      91-20-2930332
************************************************************************
This e-mail communication and any attachments are privileged and
confidential and intended only for the use of the recipients named above.
If you are not the intended recipient, please do not review, disclose,
disseminate, distribute or copy this e-mail and attachments. If you have
received this communication in error, please notify the sender immediately
by email or telephone at +91-20-2930332.
************************************************************************
Received on 2002-02-26