Learning Note 03http Protocol

Source: Internet
Author: User

1. The browser is a Sokect client that communicates with the server using the HTTP protocol.
HTTP request:
Request Header:
(Request method) SP (URL) SP http/1.x <cr><lf>
(Universal header type name): SP (Universal header type value) <cr><lf>
(Request header type name): SP (Request header type value) <cr><lf>
(Entity header type name): SP (Entity header type value) <cr><lf>
<cr><lf>
Request Body:
HTTP data

Description

Method: Post,get

Solid head:
There are host:xxx on behalf of the backend server
User-angent: Represents the user's current system, browser, kernel
Accept-enconding: What encoding can be received on behalf of the browser
Accept-language: What languages can be received on behalf of the browser

Request body: For example username=xxxx&pwd=123 equivalent parameter

HTTP response:
Response header:
HTTP/1.1SP Status Code SP status code Description <cr><lf>
Server:microsolf-iis/8.5<cr><lf>
X-powerd-by:asp.net
Date:.....<cr><lf>
<cr><lf>
Return to Body:
HTTP data body

Status code:
Paragraph 200 is a success
Paragraph 300 requires further processing of the request.
400 segment is a client request error
500 segment is a server error

*content-type: The type of the request data content.

Learning Note 03http Protocol

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.