biggs06 has asked for the wisdom of the Perl Monks concerning the following question:
I'm running Fedora so the binmodes should have no effect, correct? I've also tried#!/usr/bin/perl use strict; use LWP::UserAgent; my $ROBOT = LWP::UserAgent->new(); my $response = $ROBOT->get("http://a1835.g.akamai.net/f/1835/276/3h/ww +w.netlibrary.com/covers/158/800/158800.gif"); open(FILE, ">test.gif"); binmode FILE; binmode stdout; print FILE $response->content(); close FILE;
with the same results. Some images such as this one get downloaded just fine. Any idea what's going on here?#!/usr/bin/perl use strict; use LWP::Simple qw/getstore/; getstore("http://a1835.g.akamai.net/f/1835/276/3h/www.netlibrary.com/c +overs/158/800/158800.gif", "test2.gif");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Downloading Corrupted Images
by sgifford (Prior) on May 10, 2007 at 16:21 UTC | |
by biggs06 (Initiate) on May 10, 2007 at 16:51 UTC | |
by sgifford (Prior) on May 10, 2007 at 17:16 UTC | |
|
Re: Downloading Corrupted Images
by derby (Abbot) on May 10, 2007 at 15:42 UTC | |
by Anonymous Monk on May 10, 2007 at 15:53 UTC | |
by derby (Abbot) on May 10, 2007 at 16:15 UTC |