• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

How to sniff and decode the http request headers using vc++?

Tangled

Junior Member
Hi all,

I am a new comer to networking, dont know if this is the right place to post this question!!

My target is to -

Recieve all outgoing packets from my machine. From the packet isolate the Http header section and decode the content as strings. Look for the requested url and the userAgent.

I am using the wpcap library to sniff packets and I am recieving data.

as follows -

ff ff ff ff ff ff 90 4c ...........00 01
08 00 06 04 00 01 90 4c ...........d0 a5
......
..

But from these hexadecimal data how can I jump and get the http header and how will be able to decode this data into engilsh?
 
What? Why would you be using VC++ to examine HTTP traffic?
Use WireShark, or something along those lines, where it can decode for you.
 
Back
Top