Relative Content

Tag Archive for c#.net-core

Request stuck until it gets timeout

I have this piece of code below to send a request to an address that does a 302 redirect to another subdomain. This webpage requires 4 HTTP headers to be present and when using curl (both locally and on our server), I get the correct response, however, with .net 7/8 app the httpClient.SendAsync method gets stuck and times out. The same code works locally, but does not work on our server.