You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure where to post this. I found issue #33309 while researching my problem so posting this where that one was.
Summary
I have an ASP.NET web api where I needed an HttpClient that did not follow redirects. So I configured my controller to have a client injected while configuring the message handler from this article
Describe the issue or suggestion
Not sure where to post this. I found issue #33309 while researching my problem so posting this where that one was.
Summary
I have an ASP.NET web api where I needed an HttpClient that did not follow redirects. So I configured my controller to have a client injected while configuring the message handler from this article
However, i was still receiving a 200 Ok response when hitting urls that I knew were to return 302.
I was only able to fix this by using the HttpClientFactory
I'm able to continue my project with the factory method, but it appears the configuration is ignored
on the original method.
Project Link
Sample project https://github.com/spence-ss/HttpClientTest
Project FIles
HttpClientTest.csproj
Program.cs
Settings.cs
ClientController.cs
FactoryController.cs
The text was updated successfully, but these errors were encountered: