F
fritz-bayer
Hi,
I'm using the Parrallel::UserAgent to send several HTTP requests at
once. After that I circle through the result and process the content.
I have redirection turned on, so the agent follows redirects. The
problem I have is retrieving the original urls of the requests.
The method:
my $redirectedUrl = $response->request->url;
will return the redirected url instead of the original one.
How can I retrieve the orginal url of the request, before it was
redirected. Of course I registered the url before, but I do not know,
which url caused the redirect.
Anybody who knows, where the original url can be found? Or is it
discarded?
Fritz
I'm using the Parrallel::UserAgent to send several HTTP requests at
once. After that I circle through the result and process the content.
I have redirection turned on, so the agent follows redirects. The
problem I have is retrieving the original urls of the requests.
The method:
my $redirectedUrl = $response->request->url;
will return the redirected url instead of the original one.
How can I retrieve the orginal url of the request, before it was
redirected. Of course I registered the url before, but I do not know,
which url caused the redirect.
Anybody who knows, where the original url can be found? Or is it
discarded?
Fritz