当前位置:网站首页>I spring and autumn web Penetration Test Engineer (elementary) learning notes (Chapter 3)
I spring and autumn web Penetration Test Engineer (elementary) learning notes (Chapter 3)
2022-06-22 08:17:00 【draper-crypto】
Past the post :
i spring and autumn Web Penetration test engineer ( primary ) Learning notes ( Chapter one )
i spring and autumn Web Penetration test engineer ( primary ) Learning notes ( Chapter two )
The third chapter :HTTP agreement
3.1 HTTP Basic concepts of
HTTP agreement ( Hypertext transfer protocol HyperText Transfer Protocol), It is based on TCP Application layer transport protocol , In short, it is a rule for data transmission between client and server . It's a stateless protocol , There is no memory for transaction processing , Support customers / Server mode (C/S) End .
Format :http://host[":"port][abs_path]
3.2 TCP/IP Position in
It's an application layer protocol , It is in the protocol stack TCP Above , It is in TCP、TLS、SSL Above (PS: If in TLS、SSL Above is HTTPS,HTTP and HTTPS It's completely different ,HTTP The port of is 80, and HTTPS The port of is 443) The following figure HTTP Blocks cover Two layers of .
3.3 HTTP Request and response

3.3.1 request
Reference the packet capturing pictures in the original video :
Message analysis :
(1)HTTP Request status line : The status line consists of three parts , Include Method character POST, Resource path (URI),HTTP Version number
GET /newRelease/issue HTTP/1.1
(2) Access location :
Host:www.xxxxxx.com
(3) length :
Content-Length:15
(4) Request header sent by browser , Used to indicate the type of resource you want :
objectivecAccept:*/*
(5) Represents the entry section , Which website you first visited from will be listed later :
Origin:http://www.xxxxxx.com
(6) Customer's own information , Contains the system version 、 name , Browser version 、 name , There can be no :
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X10_10_ 4)
AppleWebkit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36
(7) The URL to accept the request , And I will give you the website of the package :
Referer:http://www.xxxxxx.com/main
(8) Specifies the encoding format accepted by the server :
Accep-E ncoding: gzip, deflate
(9) Using language , font size :
Accept- Language: zh-CN,zh;q=0.8
Request method :
GET: Request for URI Identified resources
POST: stay URI New data is appended to the identified resource
HEAD: Request to get by URI The response header of the identified resource
PUT: Request the server to store or modify a resource , And use URI As its logo
DELETE: Request server delete URI Identified resources
TRACE: The request server sends back the received request information , Mainly used for testing or diagnosis
CONNECT: Keep it for future use
OPTIONS: Request query server performance , Or Query options and requirements related to resources
3.3.2 Respond to
Reference the packet capturing pictures in the original video :
(1)HTTP Response status line : The status line consists of three parts , Include HTTP Version of protocol , Status code , Text description of status code .
HTTP/1.1 200 OK
(2) Time :
Date: Sun, 17 Jan 2016 18:57:24 GMT
(3)Content-Type And the one in front objectivecAccept similar ,charset Is the code
Content-Type: text/html ;charset=UTF-8
(4) length :
Content- Length: 71059
(5) Keep connected :
Connection: keep-alive
HTTP Response status code The status code consists of three digits :
1 start : instructions - Indicates that the request has been received , Continuing processing
2 start : success - Indicates that the request was received successfully 、 understand 、 Handle
3 start : Redirect - Further action must be taken to complete the request
4 start : Client error - There is a syntax error when the user requests or the request cannot be implemented
5 start : Server-side error - The server failed to implement legal request
Common status codes are as follows :
200:OK - Client request successful
400: Client request has syntax error , Not understood by the server
401: Request not authorized , The status code must be equal to Authenticate Header fields are used together
403: The server receives the request , But refused to provide service , For example, authority issues
404:Not Found - The requested resource does not exist , For example, the wrong URL
500: An unexpected error occurred on the server
503: The server is currently unable to process the client's request , After a while , May return to normal
3.4 HTTP The head of the newspaper
HTTP The header is divided into 4 class :
Ordinary headlines 、 Ask the head of the newspaper 、 Respond to the headlines 、 Physical header
3.5 Caught tools
Yes chrome、firefox、wireshark、 Kelai etc.
边栏推荐
- Store the numbers in the array in reverse order
- Submit values of various inputs of the form
- 解析认知理论对创客教师实训的作用
- Mainstream design of database middleware
- Coding complexity C (n)
- 2022年CIO面临的七大挑战及应对方法
- MySQL master-slave replication
- PostgreSQL source code (56) extensible type analysis expandedobject/expandedrecord
- JSON usage example
- MySQL backup - mysqldump
猜你喜欢
![[Oracle database] mammy tutorial Day12 character function](/img/77/3b3aa643b0266e709019399b17bb93.png)
[Oracle database] mammy tutorial Day12 character function

Use of keepalived high availability cluster

Mt4-mql4 language EA automatic transaction programming introduction to proficiency

2022年CIO面临的七大挑战及应对方法

Seven challenges faced by CIO in 2022 and Solutions

【Oracle 數據庫】奶媽式教程 day13 日期函數

Stored procedures and functions of MySQL

成为一名卓越云架构师要具备的五项技能

Concatenate the specified character at the end of a number in a string

Postgresql源码(56)可扩展类型分析ExpandedObject/ExpandedRecord
随机推荐
Summary of basic knowledge of Oracle database SQL statement II: data operation language (DML)
On Fresnel phenomenon
面试突击59:一个表中可以有多个自增列吗?
找出不是两个数组共有的元素
QT custom composite control (class promotion function)
C#实现语音朗读功能
Calculation days ()
SVN 提交子文件夹问题
Define the data source of hikaricp connection pool for bee
LVS Technology Practice
Summary of basic knowledge of Oracle database SQL statements I: Data Definition Language (DDL)
Seven challenges faced by CIO in 2022 and Solutions
Three concurrent features 1- visibility
. Net core technology stack website Collection
How to handle root password forgetting in MySQL
SQL triggers
Summary of sub database and sub table 2
QT 控件增加双击事件
Skills required for O & M automation?
【Oracle 数据库】奶妈式教程day15 DDL、DML、索引、视图、序列、死锁这一篇就够了