views:

38

answers:

2
+1  Q: 

HTTP Packet Decode

Can i use libpcap api c api to read/decode/understand HTTP packets. Thanks, Gino.

A: 

No. libpcap just captures packets, it's up to you to do something with the data inside the packets.

One very good packet analyzer is Wireshark. Maybe that does something you want.

Thomas
A: 

Thanks a lot,Thomas... I need a C program for that, is there any api available for decoding that packet or i have to build that from scratch by referring to HTTP's RFC.

and one more question, i think Wireshark does display the contents of the packet. correct me if i am wrong. Gino.

Gino
Comment his answer instead of answering to your own question.
Balon