cURL / Mailing Lists / curl-library / Single Mail



From: <>
Date: Wed, 17 Dec 2003 15:33:28 -0700

Using curl 7.10.5 (sparc-sun-solaris2.8)

Running a simple test code below, I get an error with Bad filehandle: at
./ line 7.
I basically mimicked the example show here:
I mainly just want to capture output into a string to perform simple pattern
matching, so I basically don't want any tmp files floating around once
pattern matching is over.


use WWW::Curl::easy;
$body = "";
my $curl = WWW::Curl::easy->new();
      $curl->setopt(CURLOPT_VERBOSE, TRUE);
      $curl->setopt(CURLOPT_URL, "");
      $curl->setopt(CURLOPT_FILE, \$body);
my $ret=$curl->perform();
print $body;

This email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now!
Received on 2003-12-17