為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Log HTTP request/response from/to page to a file

  • 2 回覆
  • 1 有這個問題
  • 14 次檢視
  • 最近回覆由 edrozim

more options

First of all I am aware about https://developer.mozilla.org/en-US/docs/Mozilla/Debugging/HTTP_logging

The problem that this kind of logging not log body of request/response in readable format . For example I knew that my page made REST calls in JSON format but I fail to find JSON text in generated log file only some HEX format digits .

Is there any way to add human readable body content to this kind of logging ? Or is there any other way to log http header + body ? Proxy solution not possible in my case .

First of all I am aware about https://developer.mozilla.org/en-US/docs/Mozilla/Debugging/HTTP_logging The problem that this kind of logging not log body of request/response in readable format . For example I knew that my page made REST calls in JSON format but I fail to find JSON text in generated log file only some HEX format digits . Is there any way to add human readable body content to this kind of logging ? Or is there any other way to log http header + body ? Proxy solution not possible in my case .

所有回覆 (2)

more options
more options

Thanks for your answer , but Live HTTP Headers add-on have same disadvantage as Mozilla Debugging - it don't provide body of request/ response . Also it looks like I will need to filter which responses to log and which not . I interested only in REST / AJAX calls from page and don't need to log image / scripts loading .

I still open for suggestion but currently I see only one choice - write my own extension will handle all as I actually need :)