cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Me again

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 18 Aug 2004 12:46:15 +0200 (CEST)

On Wed, 18 Aug 2004, Tig wrote:

> < Set-Cookie: koc_session=ab441508f335b42ea8cd77719b0b8285; path=/;
> domain=www.kingsofchaos.com
> < Expires: Thu, 19 Nov 1981 08:52:00 GMT
> < Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
> pre-check=0
> < Pragma: no-cache
> < Set-Cookie: security_hash=323466345345; expires=Fri, 17-Sep-2004 09:08:34
> GMT; path=/; domain=.kingsofchaos.com
> < Set-Cookie: cookie_hash=5b9d2062d63d2b57b49c6b4aaa61cdc0; path=/

Look, you get several cookies from the server. Make sure you use them.

I suggest you add "-b nonexistinfile -L" to the curl command line, so that
curl will follow the Location: and will pass in the received cookies in the
second request.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-08-18