in reply to Read XML from remote server

Download the file with LWP::UserAgent.

Parse it with XML::Simple or XML::Parser.

XML::Simple example:

use strict; use warnings; use XML::Simple; use LWP::UserAgent; use Data::Dumper; my $ua = new LWP::UserAgent; my $response = $ua->get('http://server/path/to.xml'); die "couldn't fetch xml\n" unless $response && $response->is_success +; my $xmlString = $response->content; my @options = (); # put parser options in here. my $ref = XMLin($xmlString, @options); print Dumper($ref);

-David

Replies are listed 'Best First'.
Re^2: Read XML from remote server
by Anonymous Monk on Sep 24, 2007 at 18:26 UTC
    Fantastic repy, thanks a lot! I never tried using useragent so it looks like that made the difference for me.