andrew peacock has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl
#
# Test script for Perl extension Curl::easy.
# Check out the file README for more info.
use CGI::Carp qw( fatalsToBrowser );
use WWW::Curl;
print "Content-type: text/html\n\n";
my $url = 'http://www.google.com';
print "Testing curl version ",WWW::Curl::Easy::version(),"\n";
my $curl= new WWW::Curl::Easy;
$curl->setopt(CURLOPT_URL, $url);
if ($curl->perform() != 0) {
print "\n
Failed ::".$curl->errbuf."\n";
};
It generates the "No URL set" error.
I've googled lots, and can't find anything substantial about this message.
Can anyone help? Any advice would be greatly, greatly appreciated,
Regards
Andy
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: www::curl::easy = no url set error... Help please!
by hipowls (Curate) on Feb 24, 2008 at 00:37 UTC | |
|
Re: www::curl::easy = no url set error... Help please!
by Fletch (Bishop) on Feb 24, 2008 at 01:55 UTC | |
by andrew peacock (Initiate) on Feb 24, 2008 at 13:41 UTC |