Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^2: problem web xml file

by ig (Vicar)
on Jul 02, 2012 at 05:51 UTC ( #979367=note: print w/replies, xml ) Need Help??

in reply to Re: problem web xml file
in thread problem web xml file

There's nothing wrong with unzipping it yourself, but another option is to use LWP::UserAgent and let it handle the decoding.

#!C:/strawberry/perl/bin/perl.exe # use strict; use warnings; use LWP::UserAgent; my $url = ' +F998&part=items'; my $ua = LWP::UserAgent->new(); my $response = $ua->get($url); if($response->is_success) { print $response->decoded_content; } else { die $response->status_line; }