in reply to Re: URL Redirect
in thread URL Redirect
Please can you not start a new subthread when you are actually replying to someone else's post? See how each post has its own "reply" link on the right side? That's what you should be doing.
The long time is taken on the redirected page. If you're not interested in that then make sure LWP never tries to load it. eg:
#!/usr/bin/env perl use strict; use warnings; use LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->requests_redirectable ([]); my $src = 'http://usa.kaspersky.com/files/?file=kis&program=one&lang=e +n&track=pu_kiskis_usen'; my $res = $ua->get($src); if ($res->is_redirect) { print "$src redirects to " . $res->header('Location') . "\n"; } else { print "$src has no redirect. It returned: " . $res->status_line . +"\n"; }
This returns in a second or two. I once more encourage you to read the documentation for LWP::UserAgent where all of this is explained.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: URL Redirect
by Todd Chester (Scribe) on Sep 07, 2016 at 01:13 UTC |