Veltro has asked for the wisdom of the Perl Monks concerning the following question:
I have tried several methods creating the request but each and one of them sends the Keep-Alive 300 header.my @ns_headers = ( 'ACCEPT' => '..', 'ACCEPT_ENCODING' => '...', 'ACCEPT-LANGUAGE => '..', 'UPGRADE_INSECURE_REQUESTS' => '1', 'USER-AGENT' => '...', ) ;
Tryig to get rid of it by specifying this in the @ns_headers does not work:my $getReq = HTTP::Request->new( GET => $link, HTTP::Headers->new( @ns +_headers ) ) ; my $response = $ua->request( $getReq ) ;
|
|---|