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

Tangled

Junior Member
May 8, 2015
1
0
0
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?
 

Elixer

Lifer
May 7, 2002
10,376
762
126
What? Why would you be using VC++ to examine HTTP traffic?
Use WireShark, or something along those lines, where it can decode for you.