c# - HttpWebResponse returns 404 error -


How to ignore Httpwebresponse 404 error and continue with it? It is easy to find exceptions in input because it happens when it is very rare.

I assume that you have a code somewhere, such as in your code:

  http web response feedback = request. Gateresons () HTTP Webbations;  

Change it with:

  http web response response; Try {response = request.GetResponse () as HttpWebResponse; } Catch (WebException pre) {response = ex. Answer as HPS WP; }  

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -