Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   How to Extract "Content-Type" from HTTP response (http://www.go4expert.com/forums/extract-content-type-http-response-t10268/)

inilkar 28Apr2008 12:50

How to Extract "Content-Type" from HTTP response
 
I am writing a small HTTP Sniffer which will monitor the HTTP Packets and check for "Content-Type" set in Response.
I could not find a way how to get Content-Type from response, otherwise I can sniff packets as well as I can track Payload sent in the response.
I am using WinPcap to do this.

Could you please show me a way how to extract "Content-Type" from response?

Thanks


All times are GMT +5.5. The time now is 01:52.