Article Directory
First, start packet capture tool
Our package came with a chrome browser practice, chrome comes with a packet capture tool, press the F12 can call out.
As follows:
Currently we are only concerned with the Network like
Second, the use of tools
Open the record button
after opening the absence of data requests, so there will be no reaction
as long as it will re-request data in the following refresh the current page, it can be caught package.
Third, data analysis
We can try to analyze the data simpler and easier to understand http operations.
Open the tomcat server and enter the page (do not know tomcat server partners around at other blog under the understanding of it)
after the official to find such an example,
let's input data, but first, do not press submit:
opener, red is launched :
and then click the submit button, you can grab the data:
click the box marked options:
get:
in the http protocol, the client needs to send the requested data, the requested data where it? Is that these two:
Click the View:
The current data is to reorganize the layout of the browser parses a view to facilitate our view, click the view sourse can view the original request data,
request data to understand the composition of the next
- Request line
- Request header
- Request body
Request line
- Request method
- address
- Protocol Version
Request header
- Accept (supported data types)
- Referer (request address)
- Accept-Language (language support)
- User-Agent (user information)
- Content-Type (content type)
- Accept-Encoding (compression algorithms)
- Host (host address)
- Content-Length (content length)
- Connection (connected state)
- Cache-Control (cache control)
Request body
What we really need is a data transmission using key-value pairs preserved. Among the plurality of key-value pairs separated by &.
After the request is made, the server response data will be sent to the client.
Response line
Protocol version
status code
commonly used with a status code:
404: Not Found
403: rejected for biddern
500: Server Exception
Status Code Description
Response header
Server: Server Type
Content-Type: Content Type
Content-Length: length Content
Date: Response time