Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi iam trying to run the below run script in CMD prompt. Its not doing anything instead it rermains blank in cmd prompt itself pls give me a solution. $proxy->start()- Problem occurs at this point.
use HTTP::Proxy; use HTTP::Recorder; my $proxy = HTTP::Proxy->new(); # create a new HTTP::Recorder object my $agent = new HTTP::Recorder; # set the log file (optional) $agent->file("/tmp/myfile"); # set HTTP::Recorder as the agent for the proxy $proxy->agent( $agent ); $proxy->start(); 1;

20080423 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips

Replies are listed 'Best First'.
Re: HTTP::Proxy not producing any output
by pc88mxer (Vicar) on Apr 23, 2008 at 23:25 UTC
    This script is not suppose to generate any output, if that's what you are expecting. It's an HTTP proxy. Configure your web browser to use it, and it will record all of your browsing to /tmp/myfile.

    If you want the command prompt to return, run the script in the background.