PoliceCoP has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
I want to write a web service that routes HTTP requests via a proxy server. What should the web request looks like that is sent to the proxy server please? Is there an HTTP standard that identifies the target URL?
many thanks in advance
Edit: I think I get it. I need to create a message that looks like this and send it to the proxy server:
GET http://targetUrl.com Host: targetUrl.com Proxy-Connection: keep-alive Cache-Control: max-age=0 User-Agent: Mozilla/5.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0. +8 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Am thinking I can just use LWP user agent to create these requests.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTTP Routing via proxy servers
by sauoq (Abbot) on May 13, 2012 at 00:28 UTC |