当前位置:网站首页>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
边栏推荐
- Introduction notes to machine learning
- first. Net core MVC project
- 关于 SY8120I 的DC-DC的降压芯片的学习(12V降至3.3V)
- Market competitiveness of robot programming education
- Notes to friendship chain
- 2021 year end summary and 2022 outlook
- 短视频平台开发,点击链接、图片自动跳转到新的页面
- leetcode:714. The best time to buy and sell stocks includes handling fee [DP dual status]
- 03 summary of various additions, updates and deletions of mongodb documents
- 2022年6月对自己近况的一次总结
猜你喜欢

如何遍历collections.OrderedDict,服了又忘记items

公司领导说,个人代码超10个Bug就开除,是什么体验?

Learning notes of digital circuit (II)

Visualization of loss using tensorboard

Annual comprehensive analysis of China's audio market in 2022

Web APIs DOM event foundation dark horse programmer

Tiktok practice ~ pay attention to bloggers

歐洲家具EN 597-1 跟EN 597-2兩個阻燃標准一樣嗎?

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

设计一个有getMin功能的栈
随机推荐
ELK 搭建日志分析系统 + Zipkin服务链路追踪整合
Multithreading and high concurrency V: detailed explanation of wait queue, executor and thread pool (key)
Une seule pile dans l'ordre inverse avec des fonctions récursives et des opérations de pile
MSc 307 (88) (2010 FTPC code) Part 9 bedding test
27年,微软IE结束了!
AS 3744.1标准中提及ISO8191测试,两者测试一样吗?
Introduction notes to machine learning
利用ELK 搭建日志分析系统(二)—— 部署安装
03 summary of various additions, updates and deletions of mongodb documents
Particle theory of light (photoelectric effect / Compton effect)
关于 SY8120I 的DC-DC的降压芯片的学习(12V降至3.3V)
视频爆炸时代,谁在支撑视频生态网高速运行?
Tiktok practice ~ pay attention to bloggers
05 mongodb summary of various column operations
美创入选“2022 CCIA中国网络安全竞争力50强”榜单
@Transactional失效的几种场景
01 MongoDB的概述、应用场景、下载方式、连接方式和发展历史等
Using elk to build a log analysis system (I) -- component introduction
Market competitiveness of robot programming education
Uncover the mystery of SSL and learn how to protect data with SSL