What does HRESULT 0x80072F7A (WININET_E_INVALID_QUERY_REQUEST) mean?

 
Previous Next
WININET_E_INVALID_HEADER WININET_E_HEADER_ALREADY_EXISTS

WININET_E_INVALID_QUERY_REQUEST

WININET_E_INVALID_QUERY_REQUEST is a WinINet HRESULT. It means that the arguments supplied to a header-query operation are invalid. This commonly occurs when an unsupported query flag, handle, buffer format or index is passed to HttpQueryInfo.

What to check

  • Verify the query attribute, modifiers and custom-header parameters against the documentation for HttpQueryInfo.
  • Use a valid HTTP request handle and query it only after request headers or response headers are available.
  • Check buffer sizes, index initialization and ANSI versus Unicode function selection.

Microsoft documentation


Looking for a different code? Search another status or error code.