[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] Strangest result from downloading 1 file with wget.
From: |
Dagobert Michelsen |
Subject: |
Re: [Bug-wget] Strangest result from downloading 1 file with wget. |
Date: |
Fri, 15 Nov 2013 09:53:30 +0100 |
Hi Michael,
Am 14.11.2013 um 23:49 schrieb Michel Rod <address@hidden>:
> Could anybody shed some light:
>
> If I do:
> wget "http://www.prismcasino.com/wp-includes/js/jquery/jquery.js"
> The file contents goes as expected a bunch of jquery code.
>
> If i do:
> wget "http://www.prismcasino.com/wp-includes/js/jquery/jquery.js?ver=1.10.2"
> The file contents is completely corrupted looks like binary?
>
> The ?ver shouldnt change the content of a flat file.
>
> I tried downloading it by forcing utf-8 but my wget says "does not have
> support for IRIs".. iam not sure this has anything to do with it.
>
> Why such behaviour?
Try adding "-S" (show headers). This will give you
Content-Encoding: gzip
Just gunzip the contents and you get javascript again.
Best regards
-- Dago
--
"You don't become great by trying to be great, you become great by wanting to
do something,
and then doing it so hard that you become great in the process." - xkcd #896
smime.p7s
Description: S/MIME cryptographic signature