Response Header Processing

Some web sites have used an ad hoc approach to providing information over the web. Although HTTP is normally treated as a transport layer, existing only to move content, some web developers have chosen to return information in the HTTP headers of the response.

Note: Cookies are also transmitted by HTTP headers. However, cookies are normally used to associate a series of messages, which is a reasonable function for the transport layer.

If you need to get data from the HTTP headers of the response, you must call HttpSetResponseHeader prior to the call to HttpPost or HttpGet.