mercredi 22 février 2017

HttpWebResponse timeout

I am getting timeout exception on code bellow. Only this site is problematic. What is the problem?

string ackoURL = "http://ift.tt/2l0H2bb";
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(ackoURL);
using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
{
  //this code is never executed
}

I tried modifying SecurityProtocol, KeepAlive and simmilar things. Without success.




Aucun commentaire:

Enregistrer un commentaire