How to disable in c# expect 100 continue for http requests.


Posted on 09 November 2014 at 05:11 PM


If you want to disable this for the entire appdomain, just add the line:

System.Net.ServicePointManager.Expect100Continue = false;

Otherwise

HttpWebRequest Httpreq = WebRequest.Create(...);
Http req.ServicePoint.Expect100Continue = false;


Leave a Comment: All fields are mandatory !


* Maximum 32 charactes
* Your email will never be made public
* All HTML tags are automatically stripped down !

Stats

Posts: 10
Comments: 4
Files: 9
Downloads: 1439