in reply to Re: Fetching files (downloading) from the Internet (extra characters, file handles, file::fetch)
in thread Fetching files (downloading) from the Internet (extra characters, file handles, file::fetch)

Hey, thanks, I AM working on a windows machine and the binmode function fixed both my implementation of an http downloader and LWP. So it was a file handle problem. You are right about reinventing the wheel, but I wanted to spend some time on doing that to learn. So after about a day of doing it myself I feel that I have a fair understanding of what is happening in http and i am moving on to LWP. I looked at WWW-mechanize but could not find that exact module in the ppm window. Is there 2 differtent version of that module (One for UNIX and one for windows)?.
  • Comment on Re^2: Fetching files (downloading) from the Internet (extra characters, file handles, file::fetch)

Replies are listed 'Best First'.
Re^3: Fetching files (downloading) from the Internet (extra characters, file handles, file::fetch)
by mr_mischief (Monsignor) on Nov 25, 2008 at 16:41 UTC
    I don't think there are two different WWW::Mechanize packages for Unix and Windows. There may not be a PPM for it for several reasons, though. Since LWP and LWP::Simple can do most of the same things and there's also Win32::IE::Mechanize that does the same things as WWW::Mechanize but using the IE engine it may be a lower priority to put in the PPM repositories.

    ActivePerl may be able to load it through CPAN instead. It might be available in the newer repositories ActiveState just announced with more packages. Strawberry Perl may be able to use it from CPAN if ActiveState can't. There are passing reports for WWW::Mechanize tests on Windows, so someone has it working on that platform in some fashion. Perhaps someone who does more work on the Windows platform could answer more authoritatively.