LWP Extra Header Lines

Discussion in 'Perl Misc' started by Robert, Jun 24, 2003.

  1. Robert

    Robert Guest

    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?
     
    Robert, Jun 24, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Scott Taylor
    Replies:
    2
    Views:
    1,114
    Eric J. Roode
    Aug 4, 2003
  2. Ned D Hanks
    Replies:
    0
    Views:
    933
    Ned D Hanks
    Aug 4, 2003
  3. Andy Fish
    Replies:
    1
    Views:
    1,512
    Andy Fish
    Dec 21, 2004
  4. mlt
    Replies:
    2
    Views:
    907
    Jean-Marc Bourguet
    Jan 31, 2009
  5. mathieu
    Replies:
    3
    Views:
    650
    Bo Persson
    Sep 4, 2009
Loading...

Share This Page