Alien has asked for the wisdom of the Perl Monks concerning the following question:

Hi monks !
How can a WWW::Mechanize object act more like a browser ? I'm speaking from a stats generator ( awstats etc ... )
point of view . Besides the user-agent header and the referrer , to what should the other headers be changed ?

Replies are listed 'Best First'.
Re: Creating browser-like mechs
by geekphilosopher (Friar) on Feb 22, 2007 at 20:21 UTC
Re: Creating browser-like mechs
by Joost (Canon) on Feb 22, 2007 at 20:22 UTC
Re: Creating browser-like mechs
by perrin (Chancellor) on Feb 22, 2007 at 20:09 UTC
    Why don't you look at the headers your browser sends and change mech until it sends the same ones?