HTTP protocol Basics

Source: Internet
Author: User

1. Definition

The HTTP Hypertext Transfer Protocol details the rules of communication between the World Wide Web server and the client.

HTTP is a stateless connection such as when you send a request on a Web site after the Web server processes your request to return data and disconnect

Stateful connection (continuous connection) such as QQ

2. Format of request and response

Telnet Client open Control Panel program selector and feature selection inside the Open or close Windows feature to open Telnet

Then open xampp in the cmd window, enter telnet localhost 80 and press Enter in the blank interface that appears, press CTRL +] and then go to the point of return and then you can write the request in a blank place.

3.HTTP Request method

The difference between get and post

Get is the information that gets the address bar post is the form submission information is just the semantic difference between the two are clear text transmission no security which unsecured switch gateway can see the data generally said security or the obtained information size is the external browser address limit the length and size and the HTTP protocol G ET Post doesn't Matter

4. Status Code

5.POST request (http://www.ietf.org/rfc/rfc1867.txt )

Forum Anti-Irrigation principle is to determine the cookie between this request and the last request interval.

How the session works: Accept The session ID carried by the cookie and verify the legality;
Interview question: does local browser disable cookie,session still work? can be used to detect the cookie disabled can be artificial to add the session ID to a hidden form can also be written to a address bar as long as it can be legally passed the session can also be used

6. Collecting website information using HTTP protocol

HTTP protocol Basics

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.