Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

How to remove HTTP Keep-Alive 300 header from LWP::UserAgent request

by Veltro (Hermit)
on Apr 24, 2018 at 13:23 UTC ( [id://1213475]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @ns_headers = (
        'ACCEPT' => '..',
        'ACCEPT_ENCODING' => '...', 
    ...
        'UPGRADE_INSECURE_REQUESTS' => '1',
        'USER-AGENT' => '...',
    ) ;
    
  2. or download this
    my $getReq = HTTP::Request->new( GET => $link, HTTP::Headers->new( @ns
    +_headers ) ) ;
    my $response = $ua->request( $getReq ) ;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1213475]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-25 19:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found