15 Eylül 2014 Pazartesi

c# httpwebrequest notları

ServicePointManager.Expect100Continue = false;
string proxyUrl = "proxy.myproxy.com";
int proxyPort = 8080;
WebProxy myProxy = new WebProxy(proxyUrl, proxyPort);
 
HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create("http://mywebsite.com");
req.Proxy = myProxy;


HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create("http://mywebsite.com");
req.Proxy = null;



ServicePointManager.DefaultConnectionLimit = connectionLimit;

Hiç yorum yok:

Yorum Gönder