I'm not sure what your question is, because your one-line questions don't let out much information. So I will guess at what you possibly mean:

Maybe your wanted the answer to the question

What is the simplest Perl script to request a page from an Apache webserver through a proxy?

This question is still answered by my response to your first question.

Maybe your wanted the answer to the question

What is the simplest Perl script to request a page from http://www.apache.org/ through a proxy?

This question is still answered by my first answer to your post.

Since I don't want to assume that you post your questions without any goal, maybe the following question is the question you really wanted an answer for:

What is a simple Perl script that I can run as a CGI from within Apache which will request a page from another webserver through a proxy?

For that question, you should look at how HTTP::Proxy does it, and it is not really simple. Most of the meat will be done through CGI.pm for the page and LWP::UserAgent or LWP::Simple to fire off the request.

If, what I think is most likely, none of these answers are the answers to your real question that you mean but did not write, then please do read How (Not) To Ask A Question and then post your real question, together with the code you already have.


In reply to Re: Re: Re: Connection through a proxy by Corion
in thread Connection through a proxy by freak

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.