Perl: curl: (1) Protocol 'http not supported or disabled in libcurl

Viewed 89036

Perl Question. I'm trying to get this script running in a debugger.

I've got Aptana + Epic + ActivePerl 5.12.4 working on Windows 7x64. The script is starting fine but I'm getting an error:

curl -sS http://intranet.mycompany.org/directory/directory.xml

The above command works fine... but if I start the debugger I get this error:

curl: (1) Protocol 'http not supported or disabled in libcurl

First part of the script below:

#!/usr/bin/perl
use strict;

use XML::Parser;
use Data::Dumper;

my $url = 'http://intranet.atlanticgeneral.org/directory/directory.xml';
my $output = 'C:\global.gabook';

my $file = "curl -sS '$url' |";
my $parser = new XML::Parser(Style => 'Tree');
my $tree = $parser->parsefile($file)->[1];
5 Answers
Related