HTTP GET, Content-Encoding: gzip
Posted: Tue Sep 27, 2011 9:06 am
Hi,
I need to download a web page from another embedded device, and parse some data from that page. I tried using similar code that has worked before. However, this particular device sends out the web pages encoded with gzip.
Here's the http header:
HTTP/1.0 200 OK Date: Wed, 28 Jun 2006 13:30:04 GMT Server: Boa/0.94.13
Connection: close
Content-Encoding: gzip
Content-Type: text/html
Set-Cookie:
Is there a way to tell the server not to gzip the reply?
If not, what is the easiest way to decode the gzip encoding in a Netburner MOD5282? I found the gnu gzip source code but I'm having trouble importing the code into my project. Is there a stand-alone "inflate" source code module available somewhere that would be easier to import? HELP!
Thanks,
Dan
I need to download a web page from another embedded device, and parse some data from that page. I tried using similar code that has worked before. However, this particular device sends out the web pages encoded with gzip.
Here's the http header:
HTTP/1.0 200 OK Date: Wed, 28 Jun 2006 13:30:04 GMT Server: Boa/0.94.13
Connection: close
Content-Encoding: gzip
Content-Type: text/html
Set-Cookie:
Is there a way to tell the server not to gzip the reply?
If not, what is the easiest way to decode the gzip encoding in a Netburner MOD5282? I found the gnu gzip source code but I'm having trouble importing the code into my project. Is there a stand-alone "inflate" source code module available somewhere that would be easier to import? HELP!
Thanks,
Dan