cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Maintaining Session state ?

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 3 Jan 2006 21:55:01 -0800

On Wed, Jan 04, 2006 at 06:28:25AM +0100, Martin wrote:
> Hey,
>
> i want to be able to login at a site and then after that call a page to get the
> content.
>
> I guess the page sets a session whether you are logged in or not.
> Soo i need to keep the connection / session open and make another request.
>
> Is that possible ?
> What should I look into for completing this task ?

The two most common ways for servers to do this are using cookies and URL
parameters. You don't need to do anything special for the second (just load
the URL as given), but for the first you need the --cookie and --cookie-jar
options for the command-line tool or the equivalent curl_easy_setopt options
for whatever binding you're using for libcurl.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2006-01-04