Those things for interface technology

(1). Http protocol parsing
    is based on TCP. TCP and UDP are transport layer protocols, while Http is an application layer protocol.
    Abbreviation for Hypertext Transfer Protocol, text-oriented, using ASCII encoding.

(2) .Http features:

     [1]. Client/Server mode, supports basic authentication and secure authentication (Https)

     [2] Simple and fast

     [3] Flexible: allow the transmission of any type of data, marked by Content-Type

     [4] Http1.0 uses short connection method, Http1.1 supports long connection method

      [5] Stateless: no memory for transaction processing

    Http packets can be divided into two types: request packets and response packets, which can be implemented through POST and GET:

 1. a start line

 2. one or more header fields 

 3. A blank line (CRLF) for the end-of-header flag

 4. optional message body

 

 Request message structure:

1. request line

2. request header

3. Empty line for end-of-header flags

4. request body

 

Response message structure:

1. Status line

2. Response headers

3. Empty line for end-of-header flags

4. Response body

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326066324&siteId=291194637