keeping http session between requests
- From: zawszedamian_p@xxxxxxxxx
- Date: Thu, 29 Nov 2007 11:19:47 -0800 (PST)
I was trying to download page and keep http session between requests
like this:
my $request = HTTP::Request->new(GET => $URL_login_page);
my $response = $browser->request($request);
# save cookie
$cookie = $response->header("Set-cookie"); # here cookie is not null
$request = HTTP::Request->new(GET => $URL_get_data);
# set saved cookie
$request->header("Set-cookie", $cookie);
but it does not work - session is not not forwarded to second request,
cookie's gone
how can I keep session between requests?
thanks for your help
.
- Follow-Ups:
- Re: keeping http session between requests
- From: Sherman Pendley
- Re: keeping http session between requests
- From: Ben Morrow
- Re: keeping http session between requests
- Prev by Date: Re: what "shift" does, if not "$_ = shift;" ?
- Next by Date: any personalized page scripts out there?
- Previous by thread: Errors using installing perl modules
- Next by thread: Re: keeping http session between requests
- Index(es):
Relevant Pages
|