What does HRESULT 0x80072F7C (WININET_E_REDIRECT_FAILED) mean?

 
Previous Next
WININET_E_HEADER_ALREADY_EXISTS WININET_E_SECURITY_CHANNEL_ERROR

WININET_E_REDIRECT_FAILED

WININET_E_REDIRECT_FAILED means that WinINet could not follow a redirect. Microsoft documents two important cases: the redirect changes to an unsupported scheme, or the allowed redirect attempts have been exhausted.

Why a redirect loop is not the only cause

A valid HTTP response can still fail this way when a target changes protocol in a way WinINet cannot handle, when policy blocks a transition, or when the redirect chain repeatedly changes request context. The original status code alone is therefore insufficient.

Diagnostics

  • Log each location in the chain, status code, scheme transition, and whether the method or request body changed.
  • Set an application redirect limit lower than the protocol client maximum when needed for predictability.
  • Reject redirects to untrusted hosts for credentialed requests.

Microsoft: WinINet error messages · Microsoft: HttpOpenRequest flags


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