cURL / Mailing Lists / curl-users / Single Mail

curl-users

Curl cookie problem

From: Den Zuk <den_zuk_at_ukr.net>
Date: Sat, 26 Sep 2009 17:23:09 +0300
('binary' encoding is not supported, stored as-is)

My curl version is :  7.19.6
URL is http://yandex.ru/yandsearch?text=zzzzzz&lr=213 , metod GET.
I get headers
HTTP/1.1 302 Found
Date: Sat, 26 Sep 2009 14:21:14 GMT
Server: Apache/2.2.9 (Unix) mod_perl/2.0.4 Perl/v5.8.8
Set-Cookie: yandexuid=1161021253974874; path=/; domain=.yandex.ru; expires=Friday, 31-Dec-10 23:59:59 GMT
Location: http://yandex.ua/yandsearch?rdrnd=208417&text=zzzzzz&lr=213
Vary: Accept-Encoding
Connection: close
Transfer-Encoding: chunked
Content-Type: text/plain
  
HTTP/1.1 302 Found
Date: Sat, 26 Sep 2009 14:21:14 GMT
Server: Apache/2.2.9 (Unix) mod_perl/2.0.4 Perl/v5.8.8
Set-Cookie: Cookie_check=1; path=/; domain=.yandex.ua; expires=
Location: http://pass.yandex.ua/?retpath=http%3A%2F%2Fyandex.ua%2Fyandsearch%3Ftext%3Dzzzzzz%26lr%3D213
Vary: Accept-Encoding
Content-Length: 277
Connection: close
Content-Type: text/html; charset=iso-8859-1
  
HTTP/1.1 302 Moved Temporary
Connection: Close
Date: Sat, 26 Sep 2009 14:21:14 GMT
Location: http://yandex.ua/yandsearch?text=zzzzzz&lr=213&ncrnd=4425&nocookiesupport=yes
Server: BAIDA/1.0.0
  
HTTP/1.1 200 OK
Date: Sat, 26 Sep 2009 14:21:14 GMT
Server: Apache/2.2.9 (Unix) mod_perl/2.0.4 Perl/v5.8.8
Set-Cookie: yandexuid=2539571253974874; path=/; domain=.yandex.ru; expires=Friday, 31-Dec-10 23:59:59 GMT
Content-Type: text/html; charset=utf-8
Cache-Control: private, max-age=3600
Expires: Sat, 26 Sep 2009 15:21:14 GMT
Vary: Accept-Encoding
Connection: close
Transfer-Encoding: chunked
    
and cookie file
# Netscape HTTP Cookie File
# http://curl.haxx.se/rfc/cookie_spec.html
# This file was generated by libcurl! Edit at your own risk.
  
.yandex.ru    TRUE    /    FALSE    1293839999    yandexuid    1161021253974874
.yandex.ua    TRUE    /    FALSE    -1    Cookie_check    1
  
  

One question :why the curl does not save the last cookis (yandexuid=2539571253974874) in the file ?

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-09-26