|
Posted by vermeer1912 on June 9, 2007, 11:58 am
Please log in for more thread options
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
|