* zanzi ([EMAIL PROTECTED]) wrote:
> I have tried to wget http://anidb.net/perl-bin/animedb.pl?show=main but all
> I seem to get is a file with unreadable characters (and not the HTML file
> I'm after).
> Is it because of some perl-script on the site?

This perl script assume HTTP/1.1 and gzip support for any request :(

  HTTP/1.1 200 OK
  Date: Mon, 20 Oct 2008 15:25:09 GMT
  Server: Apache/1.3.41 (Unix) mod_perl/1.30
  Set-Cookie: adbuin=1224516309-mqMQ; path=/; expires=Thu, 18-Oct-2018 15:25:09 
  Cache-control: no-cache
  Pragma: no-cache
  Content-Type: text/html; charset=UTF-8
  Expires: Mon, 20 Oct 2008 15:25:09 GMT
  X-Cache: MISS from anidb.net
  Connection: close
  Content-Encoding: gzip
  Content-Length: 5489

You can manually decompress the data:
 $ wget "http://anidb.net/perl-bin/animedb.pl?show=main";  -O page.gz
 $ gzip -d page.gz > page.html

Saint Xavier.

Reply via email to