Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^4: Weather RSS image

by ikegami (Patriarch)
on Nov 09, 2005 at 22:14 UTC ( [id://507231]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Weather RSS image
in thread Weather RSS image

Huh? getstore calls binmode:

elsif (!ref($arg)) { # filename open(OUT, ">$arg") or return HTTP::Response->new(&HTTP::Status::RC_INTERNAL_SERV +ER_ERROR, "Cannot write to '$arg': $!"); binmode(OUT);

source

Call stack:

  • LWP::Protocol::collect
  • LWP::Protocol::http::request
  • LWP::UserAgent::send_request
  • LWP::UserAgent::simple_request
  • LWP::UserAgent::request
  • LWP::Simple::getstore

It's not a recent addition either. The version of libwww-perl packaged with ActiveState Perl v5.6.1 does the same thing.

I've successfully downloaded all the images on a Windows system (where binmode would matter) using getstore and ActiveState Perl v5.6.1.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://507231]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2024-04-25 08:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found