Overview
Compared with Httpwath, fiddler can simulate HTTP request, can breakpoint debugging, HTTP analysis statistics attracted me, after the use of this tool is very good, this article is only a brief introduction of fiddler working principle, a brief introduction of its important functions, And how to use the Fiddler to simulate HTTP requests to meet the needs of mobile server developers debugging issues. For other functions, you can study it for yourself.
Fiddler working principle:
When you launch the Fiddler, the program will use itself as a System agent for Microsoft Internet Services. As a System agent, all HTTP requests from Microsoft Internet Services (WinInet) go through fiddle before reaching the target Web server, and all HTTP responses flow through fiddler before returning to the client. Such as:
Fiddler Important Features:
1. HTTP Statistics View: 83 HTTP requests for parsing HTTP requests, such as:
2. Use Fiddler to debug: When you select Beforerequest in the Software menu rules-automatic breakpoints option, or when these request or response properties match the target's criteria, fiddler can pause HTTP traffic. Allows modification of requests and responses. This vs breakpoint debugging is quite practical.
For example, I asked for login. Before committing to the server, you can pause the request and force modifications to the httphead, such as:
Then click Run to finish:
3. Fiddler extension: Fiddler is developed with. NET and can be extended Fiddler using scripts and. NET languages.
To impersonate an HTTP request using Request Builder
For mobile server developers, it is convenient to use this tool to simulate mobile client requests.
GET Request:
Drop-down box, select Get, enter the requested address, and enter request Headers. Request headers is the format of key-value pairs, separated by: Click Execute.
You can see the corresponding results in:
Post request: The Reuqest Body is required for the POST request. The request Body is hidden by default. Click on the following steps to display the Reuqest Body.
1. Click Options.
2, click Tear off, such as.
Click Execute to simulate the POST request.
Summary: This article briefly introduces the principles of Fiddler, important functions, and how mobile server developers can simulate HTTP requests to debug their code.
This article refers to:HTTP Debugging tool: Fiddler introduction one (translation)
Using fiddler to simulate HTTP requests