Click here to Skip to main content
15,921,169 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a program in c++ that will get all packets that i receive. My problem now is that some websites like google.com is not a what you see is what you get in the packets. i was expecting some sort of html code but looking at it the packets seem to be encrypted. i'm not sure if they do that for security reasons or they make it that way so that their php code or whatever can make their site compatible with any browser.

I need help on how to read the packets to something like the page source of a website or anything close to it.

In the end I'm creating some sort of firewall.
Posted

1 solution

Google and many other sites use gzip encoding to reduce the size of transfers. If you're capturing the HTTP headers, they should include a "Content-encoding" header which says how the data has been compressed.

For details, take a look at RFC 2616[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900