in reply to Net::HTTP::Methods and LWP::UserAgent
LWP::UA will call LWP::Protocol::create in order to get the implementor for a given scheme. You can use LWP::Protocol::implementor to set a custom subclass as the handler for the http scheme, and in your custom subclass (which should more or less inherit directly from LWP::Protocol::http) you should be able to override the default header lines value.
I used to have an example which showed how to do this for something similar (overriding the IO::Socket to use a specific source address) but I can't find it for the life of me . . . aaaah, thank you Wayback Machine: lwplocal.plx.
The cake is a lie.
The cake is a lie.
The cake is a lie.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Net::HTTP::Methods and LWP::UserAgent
by flipper (Beadle) on Sep 26, 2008 at 18:14 UTC | |
by Anonymous Monk on Sep 26, 2008 at 21:12 UTC |