Others have pointed out the LWP is client-side. I think you are talking about using LWP to create some sort of HTTP proxy. In that case there are two client-server relationships. The proxy acts as a client to the web server. The proxy acts as server to the web browser.
LWP is used to implement the part of proxy that is acting as the client to the web server.
Something else is used to implement the part of the proxy that acts as the server to the browser.
There are modules on CPAN that do all that.
You can use any proxy (a Perl script or just a standard off-the-shelf HTTP proxy like Squid or Apache+mod_proxy) to "bypass" any other proxy so long as
- the replacement proxy is located outside your firewall
- it is reachable1
- you can configure the browser proxy settings
This, of course, has nothing to do with Perl.
1. Typically via an SSH tunnel so that your HTTP traffic can't be snooped.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.