cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: setting cookies before curl_easy_peform() doesn't seem to work for me.

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 31 Mar 2003 22:56:22 +0200 (CEST)

On Mon, 31 Mar 2003, Derek Ealy wrote:

> I'm using version 7.8.1.

Ugha. That version is about 18 months old. You should, no I take that back,
you MUST upgrade to a much newer version. :-)

> CURLOPT_VERBOSE shows
> ...
> >GET /logout HTTP/1.1
> Cookie:
> ONTCred=299963d6eef
[edited line]
> Host: pooka.itgssi.com:10023

This proves cookies are sent to the server.

> I'm wondering if the problem may be that there is no domain specified with
> the cookies. Is there a way for me to set the cookie domain, path, version
> etc?

No, when the client sends cookies to the server there should be no such
things. Only "name=value" pairs. Path, domain etc are properties only sent to
clients by servers, one way.

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
Received on 2003-03-31