nick2253 has asked for the wisdom of the Perl Monks concerning the following question:
Once I get the page contents, the rest of my script (not reproduced) quickly executes, so I know the problem is somewhere in the get.
I've produced a sample code below that simply prints the response object (after the substantial delay):
As you can see from the code, I've tried different agent aliases, but from experimenting, that doesn't change anything.use strict; use warnings; use WWW::Mechanize; my $request = WWW::Mechanize->new; $request->agent_alias('Windows Mozilla'); my $response = $request->get( 'https://ai.fmcsa.dot.gov/SMS/Tools/Down +loads.aspx' ); print "Got Website:\n\n$response\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Webpage "get" slow with WWW::Mechanize
by noxxi (Pilgrim) on Nov 16, 2015 at 22:16 UTC | |
by nick2253 (Initiate) on Nov 17, 2015 at 15:18 UTC | |
|
Re: Webpage "get" slow with WWW::Mechanize
by hippo (Archbishop) on Nov 16, 2015 at 20:56 UTC | |
by nick2253 (Initiate) on Nov 16, 2015 at 21:55 UTC | |
by hippo (Archbishop) on Nov 16, 2015 at 23:09 UTC | |
|
Re: Webpage "get" slow with WWW::Mechanize
by mr_ron (Deacon) on Nov 17, 2015 at 01:31 UTC |