HttpQueryInfo returning Bad Status Info Programming Software Development by dylank … function failing to retrieve the correct data is HttpQueryInfo. I am linking against wininet. Code: […//Check existance of page (for 404 error) if(!HttpQueryInfo(hRequestHandle, HTTP_QUERY_STATUS_CODE, &statChar, &statCharLen, NULL… Getting the headers for an URL Programming Software Development by pritaeas This snippet shows how you can get the headers for an URL, for example to detect a redirect. I had to use the ANSI functions to ensure correctly returned headers. Manual entry for [HttpQueryInfo](http://msdn.microsoft.com/en-us/library/windows/desktop/aa385373(v=vs.85).aspx). Let me know if you have any questions/remarks. Re: HttpQueryInfo returning Bad Status Info Programming Software Development by dylank [QUOTE=;][/QUOTE] So, no one? This seems like a difficult question, or maybe I just worded it wrong, but its been a week now and SO hasn't been able to answer it either. Re: Getting the headers for an URL Programming Software Development by vrkiro Nice :-)