What does HRESULT 0x80072F79 (WININET_E_INVALID_HEADER) mean?

 
Previous Next
WININET_E_INVALID_SERVER_RESPONSE WININET_E_INVALID_QUERY_REQUEST

WININET_E_INVALID_HEADER

WININET_E_INVALID_HEADER is a WinINet HRESULT. It means that an HTTP header passed to WinINet is malformed or not valid for the requested operation. The issue can be an invalid field name, an invalid value, wrong line termination, or an attempt to add a header in an unsupported format.

What to check

  • Validate header names, values and line endings; do not include a request line or duplicate terminator in an additional-header buffer.
  • Use the documented header API and character encoding for the specific WinINet function being called.
  • Do not log authorization, cookie or other secret header values while diagnosing the formatting error.

Microsoft documentation


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