gpt-4-0314· openai
Suzhen/CodeChat
C# HttpClient use the same HttpClient and change AllowAutoRedirect per request
- User
C# HttpClient use the same HttpClient and change AllowAutoRedirect per request
- Assistant
In the default
HttpClient, you can't change theAllowAutoRedirectproperty for per request. However, you can create a newHttpClientHandlerwith custom settings for each request: