perl -MWWW::Mechanize -le'print WWW::Mechanize->new->get("http://perlmonks.org")->request->as_string' GET http://perlmonks.org Accept-Encoding: gzip User-Agent: WWW-Mechanize/1.60