Jump to content
Sign in to follow this  

Delphi 10.3 TNetHTTPClient Max redirects exceeded

Recommended Posts

How to resolve  TNetHTTPClient  Maximum number of redirections (5) exceeded ?



Share this post

Link to post

You should understand what all these redirections are:

  • if this is endless loop of redirections, then many options:
    • fix the server logic;
    • use different URL;
    • provide additional headers (eg authentication);
    • etc
  • if this is long chain of redirections, then set MaxRedirects to a higher value.
  • Like 1

Share this post

Link to post

Thank you The problem is in the Host url I fixe it   thank you

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this