Vinay has asked for the wisdom of the Perl Monks concerning the following question:
I run above program in separate window, then I set proxy in browser (IE) and every thing works ( It creates myfilezzz file with contents $agent->get("http://myhost/myapp/"); ) except, I can't access any page(It says page not found or gives dns error). Looks like if we don't point browser to real-proxy it can't fetch page.#!/usr/bin/perl use HTTP::Proxy; use HTTP::Recorder; my $proxy = HTTP::Proxy->new(); #$proxy->host("my host name"); #I tried this with and without above line # create a new HTTP::Recorder object my $agent = new HTTP::Recorder ( file => "myfilezzz" ) or die; #$agent->proxy('http', "real-proxy"); #I tried with and without above line # set HTTP::Recorder as the agent for the proxy $proxy->agent( $agent ); # start the proxy $proxy->start(); 1;
Edited by Chady -- added code tags.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using http::record if inside fire wall
by PodMaster (Abbot) on Jun 18, 2004 at 05:18 UTC | |
by Anonymous Monk on Jun 18, 2004 at 06:41 UTC | |
by PodMaster (Abbot) on Jun 18, 2004 at 06:53 UTC | |
by Vinay (Initiate) on Jun 18, 2004 at 07:06 UTC |