How to Extract "Content-Type" from HTTP response

Discussion in 'C' started by inilkar, Apr 28, 2008.

  1. inilkar

    inilkar New Member

    Joined:
    Apr 28, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice