cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Maintaining Session state ?

From: Jack Rong <jack.rong_at_cloakware.com>
Date: Wed, 4 Jan 2006 09:03:54 -0500

I want to remove myself from mail list. You guys did something for me, but
looks like it is still there.

Thanks.

Jack

-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se
[mailto:curl-library-bounces_at_cool.haxx.se]On Behalf Of Dan Fandrich
Sent: Wednesday, January 04, 2006 12:55 AM
To: curl-library_at_cool.haxx.se
Subject: Re: Maintaining Session state ?

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