If you are using C++ in its .Net Guise, there are
HttpWebRequest
and
HttpWebResponse
types in system.web that will help simplify your task. There are probably equivalent vanilla c/c++ libraries. If all else fails I suggest you look up the HTTP specification
here[
^], especially the parts relating to HTTP messages
here[
^]. This gives you the message format, and you should be able to write a parse routine from there.