About 14,600,000 results
Open links in new tab
  1. HttpWebRequest.GetResponse () keeps getting timed out

    HttpWebResponse response = (HttpWebResponse)request.GetResponse(); here are the facts: catching the exception and retying keeps causing the same exception the default …

  2. c# - How to get error information when …

    I am initiating an HttpWebRequest and then retrieving it's response. Occasionally, I get a 500 (or at least 5##) error, but no description. I have control over both endpoints and would like the

  3. In Python, what does getresponse() return? - Stack Overflow

    Nov 17, 2009 · In Python, what does getresponse () return? Asked 16 years, 1 month ago Modified 16 years, 1 month ago Viewed 15k times

  4. c# - How do I resolve 'System.Net.WebException: The remote …

    Aug 8, 2025 · <system.web> <customErrors mode="Off" /> //Other items goes here </system.web> The possible reasons i can think of are You have an incorrect connection …

  5. Error Handling in System.Net.HttpWebRequest::GetResponse ()

    Mar 3, 2012 · I have a Powershell script that uses System.Net.HttpWebRequest to communicate with a remote host. I create the request, set properties accordingly and call getresponse() and …

  6. WebRequest.GetResponse() is throwing error 401: Unauthorized

    As of right now I don't have access to the IIS settings so I couldn't enable Anonymous Authentication which is very possible why Cybernate's answer was not working for me. I did …

  7. C# - Get Response from WebRequest and handle status codes

    HttpWebRequest requestChangelog = (HttpWebRequest)HttpWebRequest.Create(url); requestChangelog.Method = "GET"; HttpWebResponse changelogResponse = …

  8. c# - System.Net.ProtocolViolationException: You must write ...

    Jul 8, 2015 · System.Net.ProtocolViolationException: You must write ContentLength bytes to the request stream before calling [Begin]GetResponse Asked 10 years, 6 months ago Modified 9 …

  9. Why does HttpWebRequest throw an exception instead returning ...

    Apr 10, 2012 · HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(Url); request.Method = "HEAD"; using (HttpWebResponse response = request.GetResponse() as …

  10. .Net HttpWebRequest.GetResponse() raises exception when http …

    .Net HttpWebRequest.GetResponse () raises exception when http status code 400 (bad request) is returned Asked 16 years, 9 months ago Modified 2 years, 5 months ago Viewed 192k times