Storing multiple cookies
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
.
Relevant Pages
- Re: Application Scope variables ?
... > In ASP an application is an object created when a first request is made to ... > As a websever can serve more them one website and some websites might be ... > website objects in the memory all the time. ... only the web server can create the object on the first request, and destroy ... (alt.php) - Re: Application Scope variables ?
... > In ASP an application is an object created when a first request is made to ... > As a websever can serve more them one website and some websites might be ... > website objects in the memory all the time. ... only the web server can create the object on the first request, and destroy ... (comp.lang.php) - Re: Browser Hijackers
... with a complete scan using the latest version of Ad-aware seems to ... boot into safe mode and run it, before posting a request for help. ... response and you have rebooted - Post a new HijackThis log into your current ... > I have spent hours of my time trying to stop this website ... (microsoft.public.security) - Re: Tipster challenge + free tips
... No I don't have a written policy yet but I will add one asap - the only ... I also wanted to make a website and play around with ... > simon@xxxxxxxxxxxxxxxx wrote: ... > do with eMail addresses that you gather and, yet, you request them. ... (uk.sport.horseracing) - Re: Time to ditch "SSCCE"?
... Every time they don't, refuse to speculate, just say "I can't tell ... At the very least for compile error you should demand the ... we should relax the request for short code. ... put it up on a website somewhere as a zip. ... (comp.lang.java.help) |
|