P is for Practical | |
PerlMonks |
Re: Mocking request headers with Test::WWW::Mechanize?by Corion (Patriarch) |
on Oct 25, 2021 at 14:10 UTC ( [id://11138016]=note: print w/replies, xml ) | Need Help?? |
Maybe you can set the Host header using the ->add_header( Host => 'my.example.com') method from WWW::Mechanize? This should add/remove headers sent with every request.
In Section
Seekers of Perl Wisdom
|
|