Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Slow WWW::Mechanize->get

by Anonymous Monk
on Jan 26, 2013 at 01:40 UTC ( #1015445=note: print w/ replies, xml ) Need Help??


in reply to Re: Slow WWW::Mechanize->get
in thread Slow WWW::Mechanize->get

Dear roboticus, I just recognized the right question to ask: How can I print/see/dump/compare WWW::Mechanize's and Firefox's user agent strings set to the site.


Comment on Re^2: Slow WWW::Mechanize->get
Re^3: Slow WWW::Mechanize->get
by Anonymous Monk on Jan 26, 2013 at 01:49 UTC
    read the docs :) ->res->headers->as_string
      Thanks. However to understand the difference between WWW::Mechanize and Firefox i need the headers before get( $start_page ). The $mech->res->headers->as_string is not defined there. Sorry, if i misunderstood your reply.
Re^3: Slow WWW::Mechanize->get
by roboticus (Canon) on Jan 26, 2013 at 02:17 UTC

    From the docs:

    $mech->agent_alias('Windows Mozilla') is probably sufficient. You can use $mech->known_agent_aliases() to get a list of the agent aliases built into WWW::Mechanize.

    ...roboticus

    When your only tool is a hammer, all problems look like your thumb.

      Oh, this i tried... And more complex variations too, like: verify_hostname => 0,noproxy => 0,cookie_jar=>{'ASP.NET_SessionId'=>'ihbh5neysr4cxybrgsskbm45'},agent=>"Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0" and other possible parameters.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015445]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (14)
As of 2014-07-30 18:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (239 votes), past polls