Proxy in perl

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View


I am trying to write up a proxy client in perl.  I have finished part
of it where the script listens on port 7070 and when you configure
your browser to use that port, it will get the webpage just fine but I
see that if the page has calls out to other servers for images etc,
the request half heartedly fails and I just get the web page minus the
content that is hosted on some other website.  Can someone shine some
light if and how I can have the proxy app fetch those urls too?


Re: Proxy in perl

secSwami wrote:

Quoted text here. Click to load it

It's hard to say without knowing the script you use or how it works.  It
could just be displaying the content via the script on the "proxy
server" with the HTML/text and wants to just call the images normally,
as if they are also on that same server, at their expected relative or
absolute paths.  You'd probably want to have the script prepend the
domain and appropriate path, as it would be seen on the server it's
fetching the content from (assuming they don't prevent that (especially
by blocking invalid refers -- not that those can't be bypassed)).  You
could fetch the images, at least temporarily, too, depending on how you
want it to work.
Tim Greer, CEO/Founder/CTO,, Inc.
Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers
and Custom Hosting.  24/7 support, 30 day guarantee, secure servers.
Industry's most experienced staff! -- Web Hosting With Muscle!

Site Timeline