in reply to Re^2: Getting curl o/p
in thread Getting curl o/p

There are two simple steps to "making it work right":

  1. Make it work right on the shell command line without Perl
  2. Make it work within Perl

As soon as your command works under condition 1, it will also work under condition 2. Currently, you will find that your approach does not work under condition 1. Fix that.

Replies are listed 'Best First'.
Re^4: Getting curl o/p
by mido45 (Novice) on Feb 17, 2010 at 20:18 UTC

    Thank You Corion

    I followed your steps and it worked

    my $result=`curl -G -x127.0.0.1:8080 http://www.google.com 1>program.s +tdout 2>program.stderr`; print"$result\n";

    I will try now to replace 127.0.0.1:8080 with variables , I hope it will work too