I was trying to write a simple proxy. I'm just learning perl and
thought this would be really simple but I guess i'm wrong. What I had was
 
#!/usr/bin/perl -w
################
#trying to write a proxy
################
 
use CGI qw/:standard/;
use LWP::Simple;
 
my $url = "param('url');
 
#just to see what the url is set as
print $url . "\n";
 
getprint $url;
 
where you would use like http://remoteHost/myproxy.pl?url="www.google.com
 
But this doesn't have the write paths for stuff like images on the webpage where they are set as
<img src="javascript:void(0);">
Also it doesn't work on some url's like one's with frames.
 
All the examples of proxies i could find are much more complex than i'm able to understand so far.
Is there a simple fix to my code? or any easy to understand examples?
 
 
Any answers are greatly appreciated.
A future perl master.

Reply via email to