For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > June 2007 > Storing multiple cookies









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Storing multiple cookies
vermeer1912@gmail.com

2007-06-09, 10:00 pm

I use HTTP::Cookies in a request to a website:

$request = HTTP::Request->new('GET',$url1);
$request ->header( 'Referer' => $referer1);
$result = $agent->request($request);
$response = $agent->request($request);


if ($response->is_success)
{
$cookie_jar = new HTTP::Cookies::Mozilla(ignore_discard =>
True);
$cookie_jar->extract_cookies($response);
$cookie_jar->save("$DIR/cookie_jar");
}

When i make the request with a webbrowser I can see that the website
gives two values in the cookie :
Cookie: value1=321321; value2=AGJDKODJKNEJJKLA9098

When I look in my cookie_jar I can only see 'value1', value2 is
missing.
Does anyone know how I can use both values?

Thanx,

Hans

Whatareyouwaitingfor

2007-06-12, 1:59 pm

Why pay for membership at adult sites? Makes your video yourself! Just like I did, watch this full-size sample:
http://www.xx-amateur-movies.org/vid/218571/
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com