Transferred from: Http://my.oschina.net/u/1388024/blog/186886#OSC_h1_9
Catalogue [-]
What is Fiddler?
What can fiddler do?
Where to download from?
Installation:
Initial use settings:
To connect your phone to fiddler:
Start using:
Redirect:
Breakpoint:
"Analog Low Speed"
Attached: The JSON plugin for Chrome
What is Fiddler?
Fiddler is an HTTP debugging agent, it can record and check all your computer and the Internet between the HTTP communication, set breakpoints, see fiddle all the "in and out" of the data (referring to COOKIE,HTML,JS,CSS, etc., which can let you randomly modify the meaning). Fiddler is much simpler than other network debuggers because it not only exposes HTTP traffic but also provides a user-friendly format.
What can fiddler do?
- Capture all HTTP (s) Traffic view HTTP requests
- Deep dive into session metrics depth analysis HTTP session
- Filter captured traffic filtering HTTP requests
- Archive and playback recorded traffic recording, playing HTTP requests
- Web Debugging ... Web debugging, etc.
For details, please refer to the website:
Http://fiddler2.com/Features/http-https-traffic-recording
Where to download from?
Official website Download: http://fiddler2.com/docs/default-source/public-downloads/fiddler4setup.exe?sfvrsn=30
hao123 Download: Http://softdownload.hao123.com/hao123-soft-online-bcs/soft/F/2013-10-22_fiddler4setup.exe
LAN Download:
\\10.10.76.79\smcuser\ Common Software
Windows Direct access: \\10.10.76.79
Mac Access: smb://10.10.76.79
Account Number: Smcuser
Password: smcuser#2012
Installation:
Fiddler is developed based on C #, the latest version is 4.4, and running Fidder4.4 requires the. NET 4 environment,. NET 4 is: http://download.microsoft.com/download/9/5/A/ 95a9616b-7a37-4af6-bc36-d6ea96c8daae/dotnetfx40_full_x86_x64.exe
Initial use settings:
Open Fiddler, tools-> Fiddler Options. (Remember to restart Fiddler when you are finished configuring).
Select Allow remote computers to connect. is to allow other machines (devices) to send HTTP/HTTPS requests to the Fiddler, we have to tick this option, so that the phone through the local port 8888 connection.
Monitor all connections is a request that listens on all requests, including the native and device connected to the Fiddler proxy port. (Generally we do not need to monitor the machine, so do not tick)
With "Decrpt HTTPS Traffic" selected, fiddler can intercept HTTPS requests and do not need to modify this setting if there is no need to crawl HTTPS requests.
To connect your phone to fiddler:
In fact, the network is accessed through the Fiddler proxy port.
Android:
(currently only Android4.0 and above are supported, the lower version requires the agent software to be installed separately)
Open Wi-Fi settings, long press Sohu.com connection:
To modify a network:
Tick "Show advanced options", according to fill in, the hostname is the IP address of the machine, the port is the HTTP proxy port set by the Fiddler, the default is 8888
Note that some Andorid machines will not take effect immediately after they have been modified. You can first cut to another network (such as sohu-guest) and then switch back to Sohu.com
Ios:
Slightly.
or reference:
http://blog.csdn.net/jiguanghoverli/article/details/9213515
Start using:
After the connection, all requests from the phone are seen on the Fiddler main screen:
Set filter Rules:
For example, all requests too much, I just want to see Sohu News client, how to do?
On the right side of the interface, there is a Filters tab, click on it, such as:
According to the choice, fill in our formal and test clothing host:221.179.173.197; *.k.sohu.com;
To find the specified URL:
There are two ways of doing this:
1. Find, press CTRL + F
2. Set the filter rule in filters and execute (filter only records that do not meet the criteria will be cleared)
For example, I just want to see all the Article.go interface requests, then press fill and then tap:
Run Filterset now.
Viewing HTTP requests and statistical results
Double-click a request to see the details of the request. Let's see for yourselves.
There is a statistical function to be more flashy: (Ctrl + a check all requests)
Above all just introduced a bit of fur, more useful features please explore and communicate with each other.
Redirect:
1. Autoresponder
2. Select Enable Automatic Responses
3. Click Import File
4. Request matching rules can be modified by default URL or through the rule editor
Breakpoint:
1. rules-automatic Breakpoints-before requests/after Response.
2. After adding a breakpoint, you can modify the request header response first.
"Analog Low Speed"
1.rules-performance-simlate Modem Speed
Attached: The JSON plugin for Chrome
Since our interface mainly uses JSON format to return data, we recommend several JSON viewing tools under chrome:
JSON prettifier 2.6 (recommended installation, automatic, perfect format, support for tabular presentation of JSON data)
Installation Address:
Https://chrome.google.com/webstore/detail/json-prettifier/kccpfgilgmgbipamhohknpokhibinhhj
Install after you configure a host 220.181.11.134 www.betadeli.com
(Because this plugin load icon to request a foreign site, relatively slow, so configure an intranet host to replace this)
Shown
Structured display:
Supports shrinking and displays the array length:
Display in tabular format:
JSONP Viewer 1.1.6 (manual, supports JSONP format display)
Installation Address:
Https://chrome.google.com/webstore/detail/jsonp-viewer/mijkjfpdiidomhagijpedgaeekkadlgp
HTTP Debugging Tools-fiddler usage Guidelines