I use the HttpQueryInfo C ++ ++ HttpQueryInfo function.

This is what I get in response from the server when I request a script. And I want to get the data. What do we have to do?

 HTTP/1.1 200 OKServer: nginx/0.7.64Date: Fri, 14 Dec 2012 13:28:50 GMTContent-Type: text/html; charset=WINDOWS-1251Transfer-Encoding: chunkedConnection: keep-aliveX-Powered-By: PHP/5.2.17Set-Cookie: PHPSESSID=h0ur9abofidnf2ms1nq6sjq7m7; path=/Expires: Thu, 19 Nov 1981 08:52:00 GMTCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0Pragma: no-cacheHTTP/1.1 200 OKServer: ngio 

    1 answer 1

    So HttpQueryInfo gives information about the request, not the answer to the request. In other words, all that can be obtained using HttpQueryInfo is only the http-heder.

    Apparently you need to use another function.

    • @SoloMio, it looks like useful info is here . I think you need to continue to call InternetReadFile. - avp