7.1 Status Code Overview
When a Web server responds to a request from a browser or other client, its answer typically consists of a status line, several answer headers, a blank line, and a content document. Here is one of the simplest answers:
http/1
HTTP protocolThe main features of the HTTP protocol can be summarized as follows:
1. Support client/server mode.
2. Simple and fast: When a customer requests a service from the server, it simply transmits the request method and path. The request
HTTP packets are divided into request messages and response messages ).
I,Packet Components
An HTTP packet consists of three parts:
(1) start line)
(2) Header)
(3) Body)
Example:
HTTP/1.0 200 OK // start line Content-Type: text/plain // header
An HTTP message consists of a client-to-server request and a server-to-client response. The request message and Response Message are both from the start line (for the request message, the start line is the request line, and for the response message,
Js|servlet
7.1 Status Code Overview
When a Web server responds to a request from a browser or other client, its answer typically consists of a status line, several answer headers, a blank line, and a content document. Here is one of the simplest
Js
7.1 Status Code OverviewWhen a Web server responds to a request from a browser or other client, its answer typically consists of a status line, several answer headers, a blank line, and a content document. Here is one of the simplest answers:http/
HTTP protocolThe main features of the HTTP protocol can be summarized as follows:
1. Support client/server mode.
2. Simple and quick: When a client requests a service from a server, it simply transmits the request method and path. The request method
Transferred from: http://blog.csdn.net/gueter/archive/2007/03/08/1524447.aspxAuthor:jeffreyIntroduction HTTP is an object-oriented protocol belonging to the application layer, which is suitable for
HTTP is an object-oriented protocol belonging to the application layer, which is suitable for distributed hypermedia information System because of its simple and fast way. It was proposed in 1990, after several years of use and development, has been
Original post address: http://blog.csdn.net/gueter/article/details/1524447IntroductionHTTP is an object-oriented protocol belonging to the application layer, which is suitable for distributed hypermedia information System because of its simple and
Status Code
reason Phrases
representative meaning
HTTP version
Message response
100
ContinueContinue to
The client should continue to send the request. This temporary response is used to
Document directory
8.2.3 use of the 100 (CONTINUE) Status
10.1.1 100 continue
10.1.2 101 switching protocols
10.2.2 201 created
The first line of the RFC 2616 publish status-lineresponse message is status-line, which contains the HTTP Version
1. Connect to the Web serverA client application (such as a web browser) opens a socket (80 by default) to the http port of the Web server ).
Example: http://www.myweb.com: 8080/index.htmlIn Java, this is equivalent to the Code:Soceet socket = new
The first thing to note is:The interaction between HTTP Protocol must be understood. HTTP is based on TCP, application layer protocol, and connection.HTTP is a request/response mode-based stateless protocol (Request/response based, stateless
Author: Jeffrey
Introduction
HTTP is an object-oriented protocol at the application layer. It is applicable to distributed hypermedia information systems due to its simple and fast method. It proposed in 1990 that, after several years of use and
1. Introduction to HTTP
What is HTTP? Hypertext Transfer Protocal, a hypertext transfer protocol, has been widely used on WWW since 1990. It is the most widely used protocol on WWW today. Its current version is 1.1.
HTTP is an application layer
The main features of HTTP protocol can be summarized as follows: 1. Support for customer/Server modes. 2. simple and fast: when a customer requests a service from the server, they only need to send the request method and path. Common Request methods
ResourcesWithin the framework of rest, everything is about resources. Each resource is defined as a URI.format: ://// In addition, another key part of the URI is "VERB", which always corresponds to what we call them as methods, usually in four forms-
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.