When I point my browser (MS/IE5.5) to the URL, I see it fine; the first few lines are:
Content: Planetarion galaxy listing (sorted by x, y) Author: vish@planetarion.com Version: 1.00 (2000-11-20 17:35:00 ISO) Date: 2001-07-11 05:07:01 ISO Separator: ' ' Format: X Y GalaxyName Score 1 1 [BLADE]NoPACrew[Xeno][Legion] 70995861 1 2 -=The [CRUSADE]rs=- [TPB][AC] 62489813 1 3 {gods unwanted children} 10634982 1 4 Realm of Exile {Aesir} {BSun} 42432856 1 5 [p5a] [wl] [VA]- Wolves Lair 77182991 1 6 [Trash] [6thR] Fight Club 53804931
When I run the following:
#! /perl/bin/perl -w use strict; BEGIN { use CGI::Carp qw(fatalsToBrowser warningsToBrowser); } use LWP::Simple; use CGI; $| = 1; my $q = CGI->new; my $URL = "http://cpaweb01.planetarion.com/botfiles/galaxy_listing.gz" +; my $html = get( $URL ); print $q->header, $q->start_html; print $q->h1('Test'); print $html; print $q->end_html;
I see (first few lines):
Test < ÎK; tý]?#Y·&?]GÿS]gFoWÕ>
So my guess (.gz, after all) is that it's a compressed file, which IE can unzip properly but it's just junk to Perl. Perhaps some other monks can help out with a Perl module to deal with compressed files.

Update Masem 2001-07-11 : Changed PRE to CODE


In reply to Re: Retrieving a file on the web (NOT so easy) by voyager
in thread Retrieving a file on the web (NOT so easy) by Scott203

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.