curl-users
Re: curl returns intelligible text
Date: Thu, 29 Apr 2010 15:03:06 +0200
Zitat von "G. T. Stresen-Reuter" <tedmasterweb_at_gmail.com>:
> I just tried curl http://sannhac.com > sample.html and it worked fine for me.
Hmm, did you actually look at the file you got? ;-)
I get only gzip-compressed output from this host like the sample by the OP.
This server seems to send compressed output unconditionally, even if a
client (like curl) does not request it.
Solution under Linux, pipe it through gunzip yourself:
curl http://sannhac.com | gunzip > sample.html
and you have wonderful vietnamese UFT-8 characters inside.
Best regards,
J.Roderburg
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-04-29