Sparkle tHttpClient and 301:Moved permanently

If I use Indycomponents, there is an option to enable auto redirect so trying to GET a url which has moved permanently works and I get a result because it is processed internal, redirects to new url and returns the response.

Is there an option to enable this behaviour also with Sparkle?

That is currently not possible, Sparkle explicitly disables automatic redirects in WinHttp and you have to process the redirection yourself.

And how can we do this, Is there a information in the response with the new url?

The new URL is informed in the Location header:

  UrlToGo := Response.Headers.Get('Location');
1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.