The http/1.1 standard has been a widely used and prevailing standard since its inception in 1999.Related documentsRfc2616:hypertext Transfer Protocol--http/1.1In RFC6585, the status codes 428, 429, 431, 511 are added inRFC2616 developed a series of
When a user tries to access content on a server that is running Internet information Services (IIS) over HTTP, IIS returns a numeric code that represents the status of the request. The status code can indicate whether a specific request has
There is a requirement in the current project to send a URL request through Java to see if the URL is valid, so we can judge it by getting the status code.
try {URL u = new URL ("http://10.1.2.8:8080/fqz/page/qizha/pros_add.jsp");
try
Author: Ruheng
Address: http://www.jianshu.com/p/c1d6a294d3c0
In this paper, the HTTP request and response process to explain the relevant knowledge points involved.
First
HTTP requests and corresponding steps
Picture from: Understanding HTTP
This is a more comprehensive HTTP request error status code Daquan link address: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html, the following are just a few of the common occurrences.
1xx (Temporary response)A status code that represents a
WAS _ initiate mbind: Invalid argument, mbindargument
**************************************** ******************************** ***************************************
Original Works are from the blog of "Deep Blue blog". You are welcome to repost
1XX-Informational Tips These status codes indicate a temporary response. The client should be prepared to receive one or more 1xx responses before receiving a regular response. 0-local response succeeded. 100-continue the initial request has
Successful status code:200– server successfully returned to Web page304– not modifiedFailed status code:404– The requested page does not exist503– Server is temporarily unavailable500– Server Internal ErrorThe following is not very common, remember
Log File Location
By default, IIS 7.0 puts log files in the following folders: Inetpub \ logs \ logfiles
This folder contains different directories for each web site. By default, log files are created daily in the directory and named by date. For
Status Code
Description
100
ContinueThe initial request has been accepted, and the customer should continue to send the rest of the request
101
Switching protocolsThe server converts a client-compliant request
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.