LWP Extra Header Lines

R

Robert

Hi,

Does anyone know how to add extra request header lines with LWP?

I've seen this way but thought I'd see if there's a 'better' way:
my @headers = (
'User-Agent' => 'Mozilla/4.76 [en] (Win98)',
'Accept-Language' => 'en',
'Accept-Charset' => 'iso-8859-1',
'Accept-Encoding' => 'gzip',
'Accept' => 'image/gif, image/jpeg');
my $response = $browser->get($url, @headers);

And, maybe more importantly does anyone know where I can find a list
of how different browser headers look?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top