I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2005-08-16 18:11:00-07 by randomhajile
Changing the request hostname in GET and POST
I was wondering: is there a way to modify the hostname that is sent before the request is sent to a web server when using an HTTP proxy server? I set HTTP-Proxy up to connect to our corporate proxy as an intermediary, so that browsers send POST/GET requests as "GET http://slashdot.org/" rather than "GET /". I'd like to be able to change the 'slashdot.org' to an IP address or different web page (for instance, the HTTP tunnel I have set up at home). I've tried other solutions, and none can get me to that point, but I am most comfortable with Perl, so I figured I'd give HTTP-Proxy a shot. I like it the way it abstracts objects nicely, while also allowing you to use real Perl code. Any ideas would be much appreciated.

EP
Direct Responses: 899 | Write a response