Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use LWP::UserAgent; my $ua = new LWP::UserAgent; $ua->default_header('X-Requested-With' => 'XMLHttpRequest'); my $response = $ua->get('http://site.com'); # delete header 'X-Requested-With my $response = $ua->get('http://site.com');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Remove lwp header
by Corion (Patriarch) on May 19, 2013 at 23:04 UTC | |
|
Re: Remove lwp header
by Anonymous Monk on May 19, 2013 at 23:38 UTC | |
|
Re: Remove lwp header
by vsespb (Chaplain) on May 20, 2013 at 09:25 UTC |