c# - HttpWebResponse in Thread throws Forbidden -


I want to call a web resource many times, however I refuse to ask on the webpress. Protected Zero Page_load (Object Sender, EventAgds E) {Thread [] TT = New Thread [10]; {Thread T = New thread (Dozb) for (Int i = 0; I

There is a default limit for 2 simultaneous requests for the same domain created in the framework . When creating the HTTP WebRequest object, place this line of code in your code:

  wr.ServicePoint.ConnectionLimit = 50;   

Check the docs:

Comments