0

My Request

 lobjRequest = (HttpWebRequest)WebRequest.Create(RequestURL);
 lobjRequest.Method = pstrRequestMethod;
 lobjRequest.Proxy = Helper.CreateProxyFromSettings();

 lobjRequest.ContentLength = Encoding.UTF8.GetByteCount(pstrRequestText);
 lobjResponse = (HttpWebResponse)lobjRequest.GetResponse();
 //Time out here

Internet available but getting time out every single time...After system wakeup from sleep (4 - 5 hr)

  • What does 'After system wakeup from sleep' have to do with this? – Peter B Jan 05 '17 at 14:21
  • Application just check internet if its available then start sending request to server for and at that time timeout loop start.. – Vijay Gawli Jan 05 '17 at 14:24
  • 1
    How do you know the server is working? – Richard Jan 05 '17 at 14:25
  • I see no code that actually sends `pstrRequestText` along with the request. Did you leave that out here, or did you not write that code? – Peter B Jan 05 '17 at 14:33
  • Possible duplicate of [How to set the content of an HttpWebRequest in C#?](http://stackoverflow.com/questions/5527316/how-to-set-the-content-of-an-httpwebrequest-in-c) – Peter B Jan 05 '17 at 16:47

0 Answers0