Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting 404 - File or directory not found
Message
De
15/04/2019 04:52:08
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
14/04/2019 18:53:29
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01668068
Message ID:
01668077
Vues:
47
>>After verification, the one that is not catchable is:
>>
>>HTTP Error 404.0 - Not Found
>>
>>As opposed to the regular 404 error that I can trap in the code, this is a 404.0 error which differs a little bit.
>>
>>I am still looking at the proper way to intercept those as well from the code.
>
>It will be returned as a text message:
>https://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html
>
>Example:
>https://www.tutorialspoint.com/http/http_responses.htm
>
HTTP/1.1 200 OK
>Date: Mon, 27 Jul 2009 12:28:53 GMT
>Server: Apache/2.2.14 (Win32)
>Last-Modified: Wed, 22 Jul 2009 19:15:56 GMT
>Content-Length: 88
>Content-Type: text/html
>Connection: Closed
>
>You can see the exact response using Telnet (download PuTTY if you don't have a telnet client):
>
C:\> telnet yourweburl.com 80
>
>Type "GET / HTTP/1.1" or whatever the url is producing the error, and press enter twice. Look at the top line of the header returned. That's what you'd need to parse if you can get the raw returned content, including that header.
>
>-----
>A possible fix?
>https://stackoverflow.com/questions/33972144/maprequesthandler-404-0-error-when-routing-html-from-aspx-in-iis-8-0

Or you can just use postman or fiddler …
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform