当前位置:网站首页>Recommended by Alibaba P8, Fiddler packet capturing tool (I)
Recommended by Alibaba P8, Fiddler packet capturing tool (I)
2022-06-28 04:18:00 【Program yuanyuexia】

Fiddler brief introduction
Fiddler It is on the client side and the server side HTTP agent
The most commonly used http One of the bag grabbing tools
Very powerful , yes web A handy tool for debugging
- Monitor the browser for all HTTP/HTTPS Traffic
- see 、 Analyze the details of the request content
- Forgery of client requests and server responses
- Test website performance decryption HTTPS Of web conversation
- overall situation 、 Local breakpoint function
- Third party plug-ins
Scenario usage scenario
- Interface debugging 、 The interface test 、 Online environment debugging 、web Performance analysis
- Before and after judgment bug、 development environment hosts To configure 、mock、 Weak network disconnection test
B/S framework
Write a program to deploy to web The server
web The server runs on the server , binding ip Address and listen on a port , Receive and process http request
Client pass http Protocol to get web pages on the server 、 Documents, etc.

working principle

HTTP
Hyper Text Transfer Protocol( Hypertext transfer protocol )
Transport protocol used to transfer hypertext from the world wide web server to the local browser
HTTP The protocol is based on TCP Application layer protocol , It doesn't care about the details of data transmission , It is mainly used to specify the data transmission format of the client and the server , It was originally used to transmit... To clients HTML Content of page . The default port is 80
http It's based on the request and response pattern 、 Stateless 、 Application layer protocol

complete HTTP agreement
complete http The protocol contains two parts: request and response

HTTP Request message
HTTP The request message is mainly composed of the request line 、 Request header 、 A blank line 、 Request body ( Request body )4 Part of it is made up of

The following is fiddler Request message of a session

Request method ( Request Method)
Request method | remarks |
GET | Request resources |
POST | Submit resources |
Head | Get response header |
PUT | Replace the resources |
DELETE | Delete resources |
OPTIONS | Allow clients to view the performance of the server |
TRACE | Echo requests received by server , For testing or diagnosing |
URL
Uniform Resource Locator: Uniform resource locator , Used to describe resources on the Internet
Format :schema://host[:port#]/path/.../[?query-string]
scheme: agreement , Such as http,https,ftp etc.
host: Domain name or IP Address
port: port
path: Resource path
query-string: Parameters sent
Such as :https://www.baidu.com/s?wd= Meimeida
Request header (Request Header)
Request header | describe |
Host | host ip Address or domain name |
User-Agent | Client related information , If the operating system 、 Browser and other information |
Accept | Specifies the type of information received by the client , Such as :image/jpg,text/html,application/json |
Accept-Charset | The character set accepted by the client , Such as gb2312、iso-8859-1 |
Accept-Encoding | Acceptable content coding , Such as gzip |
Accept-Language | Accepted language , Such as Accept-Language:zh-cn |
Authorization | The client provides to the server , Information for authority authentication |
Cookie | Carry the cookie Information |
Referer | Of the current document URL, From which link |
Content-Type | Request body content type , Such as Content-Type: application/x-www-form-urlencoded |
Content-Length | Data length |
Cache-Control | Caching mechanisms , Such as Cache-Control:no-cache |
Pragma | Prevent pages from being cached , and Cache-Control:no-cache It works the same |
HTTP response message
HTTP The response message mainly consists of the status line 、 The message header 、 A blank line 、 Response Content 4 Part of it is made up of

The following is fiddler Response message of a session

Status code (Status Code)
To represent a web server HTTP Responding to the state of 3 Digit code
Status code | describe |
1XX | Prompt information , The request was successfully received |
2XX | success , The request was successfully processed 200 |
3XX | Redirection related 304 |
4XX | Client error 404 |
5XX | Server-side error 500 |
Response head (Response Header)
Response head | describe |
Server | HTTP Software information of the server |
Date | Time of response message |
Expires | Specify cache expiration time |
Set-Cookie | Set up Cookie |
Last-Modified | Resource last modified |
Content-Type | The type and character set of the response , Such as :Content-Type: text/html; charset=utf-8 |
Content-Length | The length of the content |
Connection | Such as Keep-Alive, To hold on to tcp The connection is not closed , Not permanently connected , The server can be set |
Location | Indicates the location of the redirection , new URL Address , Such as 304 The situation of |
GET request
Format http://host:port/path?xx=aa&yy=bb
Such as :http://120.78.128.25/futureloan/mvc/api/member/register?mobilephone=13555555528&pwd= adorable
explain :
- http/https: Protocol type
- host: Server host ip Address or domain name
- port: Port number , If it is 80 It can be omitted , Other ports must be specified
- path: Path to access resources
- ?: Separator , Used to distinguish path And parameters
- xx=aa、yy=bb: Request parameter list
- &: Connecting symbols for multiple parameters
To be continued , Please like the reminder
边栏推荐
- PostgreSQL implements batch update, deletion and insertion
- 03 summary of various additions, updates and deletions of mongodb documents
- Are the two flame retardant standards of European furniture en 597-1 and en 597-2 the same?
- 阿里P8倾情推荐,Fiddler抓包工具实战篇(一)
- first. Net core MVC project
- Particle theory of light (photoelectric effect / Compton effect)
- 等保2.0密码要求是什么?法律依据有哪些?
- 如何遍历collections.OrderedDict,服了又忘记items
- 2022年中国音频市场年度综合分析
- What is the level 3 password complexity of ISO? How often is it replaced?
猜你喜欢

Analyzing the comprehensive application ability of educational robot

Web APIs DOM event foundation dark horse programmer

leetcode - 329. Longest increasing path in matrix

27年,微软IE结束了!

揭开SSL的神秘面纱,了解如何用SSL保护数据

MySQL master-slave replication, separation and resolution

AS 3744.1标准中提及ISO8191测试,两者测试一样吗?

猫狗队列的问题

Particle theory of light (photoelectric effect / Compton effect)

From meeting a big guy to becoming a big guy, shengteng AI developer creation day brings infinite possibilities to developers
随机推荐
ELK 搭建日志分析系统 + Zipkin服务链路追踪整合
Digital promising, easy to reach, Huawei accelerates the layout of the commercial market with "five pole" star products
From zero to one, I will teach you to build a "search by text and map" search service (I)
【Linux】【Mysql】ERROR 1698 (28000): Access denied for user ‘root‘@‘localhost‘
PostgreSQL implements batch update, deletion and insertion
使用tensorboard进行loss可视化
Analyzing the comprehensive application ability of educational robot
Open the field of maker education and creation
抖音實戰~關注博主
03 summary of various additions, updates and deletions of mongodb documents
What is the level 3 password complexity of ISO? How often is it replaced?
Principle of event delegation
成长一夏 挑战赛来袭 | 学习、创作两大赛道,开启导师报名啦!
Elk builds log analysis system + Zipkin service link tracking integration
03 MongoDB文档的各种增加、更新、删除操作总结
视频直播系统源码,倒计时显示,商品秒杀倒计时
Little knowledge about function templates --
2022年中国音频市场年度综合分析
AS 3744.1标准中提及ISO8191测试,两者测试一样吗?
机器学习入门笔记