I need to manually ungzip response of the following page: http://muaban.net/ho-chi-minh.html
I'm doing
echo -e "GET /ho-chi-minh.html HTTP/1.1\r\nHost: muaban.net\r\nAccept-Encoding: gzip\r\n" | nc muaban.net 80 > response.txt
until response actually contains Content-Encoding: gzip
or Content-Encoding: deflate
header (sometimes it's just plain text), then
cat response.txt | sed '1,14d' | zcat
but it says input is not in gzip format.
Here are the headers:
HTTP/1.1 200 OK
Cache-Control: public, max-age=67
Content-Type: text/html
Content-Encoding: deflate
Expires: Wed, 16 May 2012 15:20:31 GMT
Last-Modified: Wed, 16 May 2012 15:18:31 GMT
Vary: *
Server: Microsoft-IIS/7.5
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
X-Proxy: 162
Date: Wed, 16 May 2012 15:19:23 GMT
Content-Length: 12618
Transfer-Encoding: chunked
header?