bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] wget option "-p" incompatible with compression?


From: Giuseppe Scrivano
Subject: Re: [Bug-wget] wget option "-p" incompatible with compression?
Date: Sun, 25 Apr 2010 13:49:10 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Hello Jens,

actually wget doesn't handle gzip compressed files, adding the
Accept-Encoding header is just a hack, pretending wget supports gzip
when it doesn't.

In order to use -p you need to download the file as plain text, not
forcing a compression.

Cheers,
Giuseppe



Jens Schleusener <address@hidden> writes:

> Hi,
>
> sorry, the below described wget behaviour may not be a real bug:
>
> I use often the wget option
>
>  --page-requisites
>
> ("-p") but for some test purposes I now added also the option
>
>  --header='Accept-Encoding: gzip, deflate'
>
> Now wget downloads and saves for e,g, a file named index.html (not
> index.html.gz) but in "gzip compressed" format. But wget doesn't seem
> to detect that and so cannot find other files that are necessary to
> properly display the given HTML page. Any hints to circumvent that
> behaviour respectively to force decompression of compressed files
> after download?
>
> Regards
>
> Jens




reply via email to

[Prev in Thread] Current Thread [Next in Thread]