Try:
var handler = new HttpClientHandler()
{
AllowAutoRedirect = false
};
HttpClient client = new HttpClient(handler);
More Related Contents:
- HttpClient vs HttpWebRequest
- sort in Ascending Order [closed]
- What is the overhead of creating a new HttpClient per call in a WebAPI client?
- .NET HttpClient. How to POST string value?
- Make Https call using HttpClient
- Adding Http Headers to HttpClient
- Is HttpClient safe to use concurrently?
- How to get DateTime from the internet?
- Using a custom type discriminator to tell JSON.net which type of a class hierarchy to deserialize
- Random number in long range, is this the way?
- HttpClient not supporting PostAsJsonAsync method C#
- Redirect from asp.net web api post action
- ASP.NET WebApi: how to perform a multipart post with file upload using WebApi HttpClient
- Post byte array to Web API server using HttpClient
- Pass multiple complex objects to a post/put Web API method
- Convert an int to bool with Json.Net [duplicate]
- Does not contain a constructor that takes 0 arguments
- C# 4.0 optional out/ref arguments
- How to add and get Header values in WebApi
- Best ORM to use with C# 4.0 [closed]
- Converting a LEFT OUTER JOIN to Entity Framework
- TPL TaskFactory.FromAsync vs Tasks with blocking methods
- Entity Framework and forced Inner Join
- How to create a method at runtime using Reflection.emit
- Drag-and-Drop multiple Attached File From Outlook to C# Window Form
- What are the true benefits of ExpandoObject?
- Post parameter is always null
- How to force ASP.NET Web API to always return JSON?
- OWIN Security – How to Implement OAuth2 Refresh Tokens
- JSON Deserialization – String Is Automatically Converted To Int