[MalaWiki] [TitleIndex] [WordIndex]

PowerBrowsingSlides/240 LWPUserAgent02

LWP::UserAgent - 02 - Identify your bot

my @ns_headers = (
    'User-Agent' => 'MaLaBot 1.0',
    'Accept' => 'image/gif, image/x-xbitmap, image/jpeg,
                 image/pjpeg, image/png,  */*',
    'Accept-Charset' => 'iso-8859-1,*',
    'Accept-Language' => 'en-US',
);

$response = $browser->get($url, @ns_headers);


2014-06-11 14:17