Newsgroups : Microsoft : microsoft.public.inetsdk.programming.wininet : 2007 Feb : get real http respont headers with HttpQueryInfo

www.cryer.info
Managed Newsgroup Archive

get real http respont headers with HttpQueryInfo

Subject:get real http respont headers with HttpQueryInfo
Posted by:jeff.davis..@gmail.com
Date:26 Feb 2007 06:10:21

Hi,

I am using wininet for http requests.
It works fine, but on some cases I get the cached headers instead of
real http headers sent by the http server.
For instance, it is the case for images when the server is sending a
304 not modified response.
In this case, when querying for headers with
"HttpQueryInfo(hHttp,HTTP_QUERY_RAW_HEADERS_CRLF, ...", I get a 200
response, that is the cached headers.

Is there a way to also get the real http server response (that the 304
response) ?
To be precise, I don't want only the "304" but all the http headers
sent by the server, with the "not-modified-since line, possible eTag
line, etc...

Thanks a lot.

Jeff.

Replies:

www.cryer.info
Managed Newsgroup Archive