About 50 results
Open links in new tab
  1. Error Handling in System.Net.HttpWebRequest::GetResponse ()

    Mar 3, 2012 · The GetResponse () method returns a HttpWebResponse object, which has a property named StatusCode, which points to a value in the HttpStatusCode .NET enumeration. Once you get …

  2. .Net HttpWebRequest.GetResponse() raises exception when http status ...

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

  3. c# - How to get error information when HttpWebRequest.GetResponse ...

    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

  4. request - Masstransit GetResponse - Stack Overflow

    May 21, 2020 · I'm not able to get this work. I try implement the Response Pattern for Masstransit. I'm 100% sure there is only a detail missing. The Consumer receives my message but I get an timeout …

  5. 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 HttpWebRequest .Timeout …

  6. 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, 9 months ago Modified 9 years, 4 …

  7. 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 find however a simpler …

  8. 500 internal server error at GetResponse() - Stack Overflow

    I have a heavy traffic aspx page calling a web service upon every user`s request as follows. string uri = "Path.asmx"; string soap = "soap xml string"; HttpWebRequest request = (HttpWebRequest)

  9. HttpWebRequest.GetResponse () hangs the second time it is called

    Jan 14, 2010 · The first request goes through fine, but the second time through the same code GetResponse () hangs and times out. WireShark shows that no HTTP traffic is being sent for the …

  10. Getting Http Status code number (200, 301, 404, etc.) from ...

    I am trying to get the HTTP status code number from the HttpWebResponse object returned from a HttpWebRequest. I was hoping to get the actual numbers (200, 301,302, 404, etc.) rather than the text