http://www.perlmonks.org?node_id=756601


in reply to modifyed http page in browser

I'd probably approach the problem with HTTP::Proxy which looks like it does what you want. Any browser should be able to connect to it.