Fiddler contains web sessions (left), request (right top)
and response windows (right bottom).
Sometimes, it can only capture traffic in IE
Sometimes, it can only capture traffic in IE
1. Build a POST request
HTTP method: POST
URL: http://www.choicehotels.com/ires/en-US/html/Availability
Request Header (Required for POST): Content-Type:
application/x-www-form-urlencoded
Request Body (Post data):
month=3&day=28&depart_month=3&depart_day=30&srp=RACK&hotel=NY618&sid=&nadult=1&nchild=0&xtrabed=none&count=1&dates_rqd=true&createarrivalcookie=yes
/*Booking data range:
3/28-3/30*/
Then Click Execute and the result will show
up in the web session
2. Analyze a POST request
Click the web session
(left in Fiddler)
Request (right top):
I.
Check the request
headers here:
II.
Check the request
body here:
Response (right
bottom):
3. How to find out the HTTP request to get the info we want
Take choice
hotels for example: http://www.choicehotels.com/.
The target is to get the rates for specific hotels given a data range.
a)
Search the hotels
by zipcode (07302) at homepage
b)
Click one hotel
in the result page
c)
In the detail
page for that hotel, click Rates tab
d)
Update the
check-in & check-out dates
You will see
the http://www.choicehotels.com/ires/en-US/html/Availability
with POST data by Fiddler.
Fiddler还可以用于捕捉http request,具体参见Fiddler捕捉手机app的http request
1. 安装插件Firebug
2. 按firebug钮
,出现firebug窗口
3. 按Net tab并且enable
4. 最后可以在搜索可能出现在para或者response中的关键字
Firebug
与Fiddler很类似的工具就是Firefox,步骤是1. 安装插件Firebug
2. 按firebug钮
,出现firebug窗口
3. 按Net tab并且enable
4. 最后可以在搜索可能出现在para或者response中的关键字