問題描述
我正在尋找可以讓我查看所有 AJAX 子請求的東西(最好是 Firefox 擴(kuò)展).基本上,每當(dāng)創(chuàng)建 XMLHTTPRequest() 時,我都想知道請求的 URL 以及隨之傳遞的 GET 和 POST 變量(如果有的話).
I'm looking for something (preferably a Firefox extension) which will allow me to see all AJAX subrequests. Basically, anytime an XMLHTTPRequest() is made, I want to know what URL was being requested and what (if any) GET and POST vars were passed along with it.
除非我錯過了它,否則我在 Firebug 或 Web Developer Toolbar 中看不到類似的東西.
Unless I'm missing it, I don't see anything quite like this in Firebug or Web Developer Toolbar.
(如果你很好奇,想要這個的主要原因是我想抓取一個使用 JS 加載其所有內(nèi)容的網(wǎng)站的本地副本,我不想花當(dāng)我只能看到正在發(fā)出的子請求時,我花了幾個小時挖掘他們的 JS 代碼.)
推薦答案
Firebug 應(yīng)該在 Net 面板中顯示它.
Firebug should show it in the Net panel.
編輯:另外,如果 Firebug 以某種方式降低 Firefox 的速度,使其無法使用,就像有時對我一樣,WireShark(以前稱為 Ethereal)將分析您系統(tǒng)上的所有網(wǎng)絡(luò)流量,包括 HTTP 和 AJAX 請求.
EDIT: Also, if Firebug slows down your Firefox in a way that makes it unusable, like it does for me sometimes, WireShark (formerly Ethereal) will analyze all network traffic on your system, including HTTP and AJAX requests.
這篇關(guān)于查看正在進(jìn)行的 AJAX 調(diào)用的簡單方法是什么?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!