System.Net.HttpWebRequest adds the header ‘HTTP header “Expect: 100-Continue”‘ to every request unless you explicitly ask it not to by setting this static property to false:
System.Net.ServicePointManager.Expect100Continue = false;
Some servers choke on that header and send back the 417 error you’re seeing.
Give that a shot.
Related Contents:
- .NET: Simplest way to send POST with data and read response
- Deciding between HttpClient and WebClient
- How to change the timeout on a .NET WebClient object
- Set timeout for webClient.DownloadFile()
- Upload and download a file to/from FTP server in C#/.NET
- Build query string for System.Net.HttpClient get
- Making a cURL call in C#
- GETting a URL with an url-encoded slash
- Getting Http Status code number (200, 301, 404, etc.) from HttpWebRequest and HttpWebResponse
- How to submit http form using C#
- Characters in string changed after downloading HTML from the internet
- Uncompressing gzip response from WebClient
- What difference is there between WebClient and HTTPWebRequest classes in .NET?
- How can you add a Certificate to WebClient (C#)?
- Download file with WebClient or HttpClient?
- ASP.NET Controller: An asynchronous module or handler completed while an asynchronous operation was still pending
- The notorious yet unaswered issue of downloading a file when windows security is required
- How to get status code from webclient?
- How do I create a directory on FTP server using C#?
- Using WebClient in C# is there a way to get the URL of a site after being redirected?
- C# – How to make a HTTP call
- WebClient runs javascript
- Model always null on XML POST
- What is App.config in C#.NET? How to use it?
- ServiceStack Request DTO design
- Detect target framework version at compile time
- How do I run a simple bit of code in a new thread?
- Mapping object to dictionary and vice versa
- Exact time measurement for performance testing [duplicate]
- What really happens in a try { return x; } finally { x = null; } statement?
- String format currency
- Write to Windows Application Event Log without event source registration
- How do I write one to many query in Dapper.Net?
- How to read data from excel file using c# [duplicate]
- How to suppress a StyleCop warning?
- Hosting CLR in Delphi with/without JCL – example
- Should I worry about “This async method lacks ‘await’ operators and will run synchronously” warning
- How can I merge two JObject? [duplicate]
- Generics can’t infer second parameter? [duplicate]
- ILMerge Best Practices
- Is it possible to Embed Gecko or Webkit in a Windows Form just like a WebView?
- How to set a proxy for Webbrowser Control without effecting the SYSTEM/IE proxy
- How can I pass a lambda expression to a WCF service?
- System.BadImageFormatException: Reference assemblies should not be loaded for execution [duplicate]
- Visual Studio – project shows up as “Miscellaneous Files”
- Does the System.Windows.Forms.Timer run on a different thread than the UI?
- Use cookies from CookieContainer in WebBrowser
- read string from .resx file in C#
- Octal equivalent in C#
- Is it better to declare a variable inside or outside a loop?