cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to use cookies

From: Dirk Haun <Dirk.Haun_at_WiredMinds.de>
Date: Tue, 26 Feb 2002 10:45:30 +0100

Ajay Kale wrote:

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

In the server response, you will find lines beginning with

Set-Cookie:

What follows, is the actual cookie. Store that and when you request the
same URL again later, add a line beginning with

Cookie:

followed by the cookie data, to your header. That's all there is to it.

bye, Dirk
Received on 2002-02-26