FIDDLER用戶界面
FIDDLER用戶的幾面主要包括下面幾個部分,如圖所示:首先FIDDLER窗口的最左邊是web session列表,窗口的最上方是main menu主菜單,然后下面的是toolbar工具欄,窗口最下方的黑的框是quickexec命令行,最下方的欄是status bar狀態欄,右邊是view選項視圖。整體大概就是醬紫。
1、Web Session 列表
列表上主要包含下面的幾個部分
包含部分如下:
包含部分如下:
#:
FIDDLER為session生成的ID號
Result:
相應的狀態碼
Protocol:
對應的協議(HTTP、HTTPS、FTP)
Host:
接受請求的主機名和端口號
URL:
請求URL的路徑
Body:
相應體中包含的字節數
Caching:
相應頭中Expires和Cache-Control的值
Content-Type:
相應的Content-Type
Process:
數據流對本地的Windos進程
Custom:
FiddlerScript所設置的ui-CustomColumn標志位的值
Comments:
通過工具欄Comment按鈕設置的注釋信息
注:標藍色區域的內容為平時較常用的部分
每個記錄不同圖標和不同顏色的含義如下:
顏色的含義如下:
紅色:
表示HTTP狀態(錯誤)
黃色:
表示HTTP狀態(認證)
灰色:
表示數據流類型CONNECT或表示響應類型為圖像
紫色:
表示響應類型為CSS
藍色:
表示響應類型為HTML
綠色:
表示響應類型為script
※注:在FIDDLER script session的ui-color標志位中可以修改字體的顏色
部分圖標的含義如下:(額,這個表從我的word粘過來格式錯,那我就直接截圖了哦)
列表上對應快捷鍵的使用:
SPACEBAR
在視圖中激活並顯示當前的session
CTRL+A
選中所有的session
ESC
取消選擇所有的session
CTRL+I
反向選中:取消選中的session,選中之前未選中的session
CTRL+X
刪除所有session
DELETE
刪除選中的session
SHIFT+DELETE
刪除所有未選中的session
R
重新執行當前請求
SHIFT+R
多次執行當前的請求(次數在后續的提示框中可以輸入)
U
無條件的重新執行當前的請求
SHIFT+U
無條件的多次重新執行當前的請求(次數在后續的提示框中可以輸入)
P
選中觸發該請求的父請求
C
選中該響應觸發色所有子請求
D
選中和當前session使用了相同請求方法和UR;的所有”重復”的請求
ALT+ENTER
查看當前session的屬性
SHIFT+ENTER
在新的FIDDLER窗口中啟動該session的inspectors
CTRL+1/2/3/4/5/6
把選中的session分別用粗體的紅色/藍色/金色/綠色/橙色/紫色表示
M
給選中的session添加描述
※注:標藍色區域的內容為平時較常用的部分
右鍵后的上下文菜單列表:
Copy
Copy菜單項用於復制在web session列表中選中的session信息,
包括just URL(選中的session的URL復制到剪切板中)、this column(拷貝菜單所在列的文本)、terse summary(選中session的簡要說明復制到剪切板里)、header only (把session請求頭復制到剪切板里)、session(把整個的session列表都復制到剪切板里)、full summary(把列表中顯示的所有session信息復制到剪切板里)
Save
Save菜單項用於把請求保存下來
Replay
Replay用於把請求以原來的形式重新發送
Select
Select選項用於支持當前選中的session來選擇其他的session
Mark
可以把選中的session分別用粗體的紅色/藍色/金色/綠色/橙色/紫色表示
Properties…
查看當前session的屬性
※注:標藍色區域的內容為平時較常用的部分
2、Main Menu 主菜單
菜單欄可以啟動所有FIDDLER的功能
①File菜單
菜單選項如下:
Capture Traffic:
控制是否開啟fiddler代理的開關
New Viewer:
打開一個新的fiddler窗口
Load Archive:
用於重新加載之前捕獲到的SAZ文件格式保存的流量
Save:
子菜單中支持以多種方式把流量保存到文件中去,和之前講的web session中右鍵后上下文菜單列表的save功能是一樣的
Import Sessions…:
支持導入從其他工具獲得的流量
Export Session:
支持用fiddler把捕捉到的sesison用多種方式保存
Exit:
關閉fiddler代理
②Edit菜單
菜單選項如下:
Copy:
支持復制sessions中的某些個信息
Remove:
支持刪除web sessions的全部、選中、未選中的信息
Select All:
全選sesisons列表中的所有內容
undelete:
恢復之前刪除的sessions
Paste as Sessions:
把剪切板里的sesisongs復制到web sessions中
Mark:
支持用不同顏色標記sessions
Unlock for Editing:
把鎖定的sesisons解鎖
Finf Sessions…:
打開find sessions窗口,搜索捕獲到的數據流
③Rules菜單
菜單選項如下:
Hide Image Requests:
控制是否顯示圖像類的sessions
Hide CONNECTS:
控制是否在web sessions中顯示CONNECT方法請求的sesisons
Automatic Breakpoints:
控制是否自動在Before Request或After Request處斷點
Customize Rules:
打開fiddler script文件
Require Proxy Authentication:
如果選中,則所有未提交的Proxy-Authentication請求頭的請求會返回HTTP/407的相應
Apply GZIP Encoding:
如果選中,則只要請求包含gzip標示的Accept-Encoding請求頭就會對除了圖片以外的所有相應使用GZIP HTTP進行壓縮
Remove all Encodings:
如果選中,會刪除所有請求相應的HTTP內容編碼和傳輸編碼
Hide 304s:
隱藏包含HTTP/304 NOT MODIFIED狀態的所有sessions
Request Japanese Content:
把所有的Accept-Encoding請求頭設置替換成ja標示,標示客戶端希望以日語的形式發送
User-Agents:
子菜單支持把User-Agent請求頭設置或替換成指定值
Performance:
子菜單提供影響web性能的簡單選項
※具體的性能設置建議還是通過Customize Rules的fiddler script文件來設置
④Tools菜單
菜單選項如下:
Fiddler Options…:
打開Fiddler Options的窗口
WinINET Options…:
打開IE的Internet Options窗口
Clear WinINET Cache:
清空IE和很多其他應用中所使用的WinINET的緩存文件
Clear WinINET Cookies:
清空IE和很多其他應用中所使用的WinINET的Cookies文件
TextWizard…:
啟動TextWizard窗口
Compare Sessions:
使用內容工具比較兩個sessions
※選項只有當選中web sessions列表中的兩個session時才有效
HOSTS…:
選項會打開fiddler的Host Remapping工具
⑤Views菜單
菜單選項如下:
Show Toolbar:
控制fiddler工具欄是否可見
Statistics:
激活Statistics選項卡
Inspectors:
激活Inspectors選項卡
Conposer:
激活Conposer選項卡
Minimize to Tray:
最小化fiddler到系統托盤
※CTRL+M鍵也是這個功能
Stay on Top:
強制fiddler運行在所有窗口的上方
AutoScroll session List:
控制當添加新的sessions后,fiddler是否自動滾到web sessions列表的底部
Refresh:
和F5鍵都用來刷新Inspectors和Statistics中的sesisons信息
⑥Help菜單
菜單選項如下:
Fiddler Help:
打開web瀏覽器,跳轉到Fiddler的幫助頁面
※F1鍵也是這個功能
Fiddler Discusison:
打開web瀏覽器,跳轉到Fiddler的討論組
HTTP References:
打開參考文檔的頁面
Check For Updates…:
連接到web服務器,檢查當前運行的fiddler是否為最新版本
Send Feedback…:
生成email信息並發送到我的郵箱
About Fiddler:
打開窗口,顯示當前的fiddler版本的信息
3、Toolbar工具欄
工具欄的話主要是提供了常見的命令和設置的快捷方式
列表上對應快捷鍵的使用:(我去,列表又尼瑪粘不了,還是直接截屏吧)
4、Status Bar 狀態欄
狀態欄由一組面板組成,顯示一些fiddler的配置信息
內容如下表:
Capturing Indication
點擊面板可以切換狀態:指示fiddler是否配置為系統代理
Process-based Filter
顯示fiddler當前正在捕獲的流量的進程類型,點擊可以顯示進程類型的過濾選項菜單
Breakpoint Indicator
指示中斷影響的類型。可能取值為:全部請求、全部響應、無
Session Counter
Web sessions的列表的條目數
※注:選中一個或多個,則顯示的方法是選中的sessions數目除以總sessions數目,例如:1/10,245
Status Information
默認情況下,顯示第一個選中的session的url
5、QuickExec命令行
命令行對話框提供了常見操作的快捷方式:包括選擇命令和script命令
①Quickexec選擇/選中命令的含義及作用如下:
命令
實例
動作
?sometext
? /app/logi
As you type sometext, Fiddler will highlight sessions where the URL contains sometext. Hit Enter to set focus to the selected matches.
>size
>40000000
>400k
>4kk
Select sessions where response size is greater than size bytes.
※注:字符‘k’會被轉換成‘000’,這樣就可以很容易的以kb甚至mb來設置
<size
<5k
Select sessions where response size is less than size bytes.
=status
=200
=404
Select sessions where response status = status.
=method
=GET
=POST
Select sessions where request method = method.
@host
@msn.com
Select sessions where the request host contains host. Hit Enter to set focus to the selected matches.
②fiddlerscript命令的含義及作用如下:
命令
實例
動作
bold
bold /bar.aspx
Mark any future sessions in bold if the url contains the target string
bpafter
Bpafter /fa
Break any response where the RequestURI contains the specified string
※注:鍵入不帶參數的bpafter可以取消該斷點
bps
Bps 404
Bps 200
Break any response where the status code matches
※注:鍵入不帶參數的bps可以取消該斷點
bpv or bpm
bpv POST
bpm POST
Create a request breakpoint for the specified HTTP method. Setting this command will clear any previous value for the command; calling it with no parameter will disable the breakpoint.
※注:鍵入不帶參數的bpv或bpm可以取消該斷點
bpu
bpu /myservice.asmx
Create a request breakpoint for URIs containing the specified string. Setting this command will clear any previous value for the command; calling it with no parameter will disable the breakpoint.
※注:鍵入不帶參數的bpu可以取消該斷點
cls or clear
clear the session list
dump
dump all sessions to a zip archive in C:\
g or go
Resume all breakpointed sessions
help
Show this page
hide
Hide Fiddler in System tray
Urlreplace oldtext newtext
urlreplace SeekStr ReplaceWithStr
Replace any string in URLs with a different string. Setting this command will clear any previous value for the command; calling it with no parameter will cancel the replacement.
start
Register as the system proxy
stop
Unregister as the system proxy
Show
Restore Fiddler from system tray -- more useful when triggering rules from ExecAction.exe (see below)
select MIME
select image
select css
select htm
Select any session where the response Content-Type header contains the specified string.
select HeaderOrFlag PartialValue
select ui-comments slow
select ui-bold *
select ui-comments \*
select @Request.Accept html
select @Response.Set-Cookie domain
Select any session where the named Header or SessionFlag contains the specified string.
allbut or keeponly
allbut xml
allbut java
Hide all sessions except those where Content-Type header contains the specified string.
quit
Shutdown Fiddler.
6、View 選項卡
1、statistics統計選項卡
Fiddler statistics shows the followsessions info.
下面是詳細介紹的關於統計選項卡中的字值含義:
數據
實例格式
含義
Request Count:
1
選中的sessions數目
Bytes Sent:
658
(headers:423; body:235)
HTTP請求頭和請求體向外發送的所有字節數
Bytes Received:
431
(headers:377; body:54)
HTTP請求頭和請求體接收到的所有字節數
ClientConnected:
14:09:30.762
ClientBeginRequest:
16:06:55.582
GotRequestHeaders:
16:06:55.582
ClientDoneRequest:
16:06:55.582
Determine Gateway:
0ms
選中的sesisons確定網關花費的時間總和
DNS Lookup:
0ms
選中的sesisons解析DNS花費的時間總和
TCP/IP Connect:
25ms
選中的sesisons建立TCP/IP連接花費的時間總和
HTTPS Handshake:
0ms
選中的sesisons在HTTP握手上花費的時間總和
ServerConnected:
16:06:55.608
FiddlerBeginRequest:
16:06:55.608
ServerGotRequest:
16:06:55.608
ServerBeginResponse:
16:06:55.582
GotResponseHeaders:
16:06:55.635
ServerDoneResponse:
16:06:55.635
ClientBeginResponse:
16:06:55.635
ClientDoneResponse:
16:06:55.636
Overall Elapsed:
0:00:00.053
ESTIMATED WORLDWIDE PERFORMANCE
--------------
The following are VERY rough estimates of download times when hitting servers based in Seattle.
2、Inspectors檢查選項卡
TheInspectors tab allows you to view the contents of each request and response, ina variety of different formats. You can develop custom Inspectors using .NET.
3、AutoResponder自動響應選項卡
The AutoRespondertab allows you to return locally stored content instead offorwarding requests to the server. Learn more...
※注:這個規則在第三章fiddler使用技巧那會重點講
4、Composer構建選項卡
Support send HTTP、HTTPS、FTP responseand manual composer
這個功能可以模擬發請求
第一步:先把請求輸入到框內,注意前面的類型是get還是post
第二步:執行:execute
第三步:在web sessions里可以查到剛發的請求
※注:這個方法可以模擬重復發很多請求的功能,在測一些接口返回請求頻繁的功能時會用到
5、Log日志選項卡
Log support that collecting Log messagestring
右鍵日志區域的上下文菜單含義如下:
Copy
把選中的文本復制到剪切板
Send to Session List
把日志發到web sessions里面
Save to Files…
把當前日志保存到磁盤文件中
※注:可以是純文本格式的文件,也可以是格式化的富文本格式(.rtf)
Clear
清空log中所有文本
6、Filters過濾選項卡
The Filters tab enablesyou to quickly filter out traffic that is not of interest.
菜單選項的功能如下
Hosts
The Zone Filter dropdown at the top of the dialog allows you to show traffic only to your Intranet (e.g. dotless hostnames) or only to the Internet (e.g. dotted hostnames). This is a useful option when debugging a site in one zone while referencing web-based documentation from the other zone.
The Host Filter dropdown enables you to flag or exclude display of traffic to specified domain names. Note, if you put, e.g. fiddler2.com in the list, you will not see traffic to www.fiddler2.com. To see traffic to subdomains of Fiddler2.com, set the filter to **.fiddler2.com*.
This will include traffic to test.fiddler2.com and sub.fiddler2.com, etc. If you want to see traffic to fiddler2.com as well, set the filter to **fiddler2.com*; this will include traffic to any domain that ends with fiddler2.com.
※注Note: When the box is yellow, it means your changes have not yet been applied. Click anywhere outside the box to save your changes to the list.
When configured to hide traffic to certain hosts, Fiddler will still proxy traffic to those hosts, but that traffic will be hidden from the Fiddler Session List. List multiple hosts using a semi-colon.
Client Process
The process filter allows you to control which processes' traffic is shown within Fiddler.
The Hide traffic from Service Host option will hide traffic from svchost.exe, a system process that synchronizes RSS Feeds and performs other background network activity.
Note: Fiddler can only determine the process name/PID owner of a request when the client application is running on the same computer as Fiddler itself.
When configured to hide traffic from certain processes, Fiddler will still proxy their traffic, but that traffic will be hidden from the Fiddler Session List.
Breakpoints
The breakpoints enable you to break requests or responses that contain the specified attributes.
Request Headers
Using these options, you can add or remove HTTP request headers, and flag responses that contain certain headers.
Response Status Code
Using these options, you can filter display of responses based on the Response Status Code.
You can set the boxes to hide sessions whose responses code match target values [HTTP errors, redirects, authentication challenges and cache-reuse].
Response Type and Size
Using these options, you can control what types of responses appear within the session list.
The list of "Block" checkboxes enables blocking responses of the specified types, returning a HTTP/404 error to the client instead of the target resource.
Response Headers
Using these options, you can add or remove HTTP response headers, and flag responses that contain certain headers.
7、Timeline時間軸選項卡
The Fiddler Timeline View allowsyou to visualize the HTTP(S) traffic on a "waterfall" diagram.
Hovering over any entry will show moreinformation about the entry. Double-clicking the entry will inspect thatsession.
時間選項卡上的圖形的含義如下:
The abbreviated URL at the left of eachTransfer Bar is green if the request was a Conditional Request, or Black if therequest was unconditional. The full URL is shown in the status bar on hover.
The start of the transfer bar is drawn atthe time (Timers.ClientBeginRequest) when the client sends the request toFiddler.
The end of the transfer bar is drawn at thetime (Timers.ClientDoneResponse) when the response to the client is completed.
The color of the bar is determined by theMIME type of the response; light-green for images, dark-green for JavaScript,purple for CSS, and blue otherwise.
If the bar is "hatched" ratherthan smooth, this indicates that the HTTP response was buffered by Fiddler. Formore information, see the "What is streaming?" section below.
The vertical line indicates the time tofirst byte of the server's response (Timers.ServerBeginResponse).
The green circle before the bar shows thata connection was reused; a red circle means that the connection was newlycreated.
The top circle represents the client'sconnection to Fiddler; the bottom circle represents Fiddler's connection to theserver.
A red X after the bar indicates that theserver sent a Connection: close header (or failed to send aKeep-Alive header for a HTTP/1.0 response), preventing subsequent reuse of the connection.
The gray arrow icon indicates that theserver's response was a redirect (302). The red ! icon indicates that theserver returned an error code (4xx, 5xx).
下面是請求的模式:
Streaming mode ensures that HTTP responsesare not buffered by Fiddler. Buffering alters the waterfall diagram, as you cansee below, where none of the images begin to download until their containingpage completes. Learn more...
LI流模式和瀑布模式上方快捷鍵可以來回切換
---------------------
原文:https://blog.csdn.net/linyuchen2008/article/details/52959086