Discussion:
get real http respont headers with HttpQueryInfo
(too old to reply)
j***@gmail.com
2007-02-26 14:10:21 UTC
Permalink
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.
Scherbina Vladimir
2007-03-08 12:03:53 UTC
Permalink
Use INTERNET_FLAG_NO_CACHE_WRITE

--Vladimir, Windows SDK MVP
Post by j***@gmail.com
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.
Loading...