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. Advertisements

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,201
    Eric J. Roode
    Aug 4, 2003
  2. Andy Fish
    Replies:
    1
    Views:
    1,752
    Andy Fish
    Dec 21, 2004
  3. Replies:
    2
    Views:
    477
  4. mlt
    Replies:
    2
    Views:
    1,145
    Jean-Marc Bourguet
    Jan 31, 2009
  5. mathieu
    Replies:
    3
    Views:
    934
    Bo Persson
    Sep 4, 2009
  6. bartc

    Re: Extra blank lines from printf.

    bartc, Mar 24, 2010, in forum: C Programming
    Replies:
    1
    Views:
    2,636
    bartc
    Mar 24, 2010
  7. Eric Sosman

    Re: Extra blank lines from printf.

    Eric Sosman, Mar 24, 2010, in forum: C Programming
    Replies:
    1
    Views:
    465
    Eric Sosman
    Mar 24, 2010
  8. David Ainley
    Replies:
    3
    Views:
    286
    Jesús Gabriel y Galán
    Aug 4, 2010
Loading...