Chrome:发布数据的来源? [英] Chrome: Source of Post Data?
问题描述
我使用开发人员工具使用Chrome 15来调查HTTP POST请求。发送请求后,在标题下的 Network 标签中,有一个名为 Form Data 的部分。本部分包含良好格式化的发布数据。但是:如何获得发布数据的来源,即请求的主体?
目前,我使用Firefox和Firebug来获取数据,或者我重建源格式化的表单数据。繁琐的...
Chrome 29-56,甚至可能超越
<最后(可能已经是第28版),它很简单。只需点击表单数据旁边的查看来源即可: stack.imgur.com/hY8Mb.pngalt =DevTools截图>
另外,至少在版本56中,可以在标题 标签,位于请求有效载荷下。 Chrome 27 在 Name / Path 从上面开始计算您感兴趣的请求的位置,从0开始。将位置存储在: 要获得发布数据源,请执行: 更旧: 右键单击 Name / Pa 在控制台中,写 要获取发布数据源,请执行: 如果有一种更简单的方法,我很高兴听到它! I am using Chrome 15 with Developer Tools to investigate HTTP POST requests. After sending a request, in the Network tab under Headers there is a section called Form Data. This section contains the post data nicely formatted. However: How do I get the source of the post data, i.e. the body of the request? Currently, I use Firefox with Firebug to get that data, or I reconstruct the source from the formatted Form Data. Cumbersome... Finally (maybe already with version 28), it's simple. Just click on view source next to Form Data: Also, at least in version 56, post data may be found in the Headers tab, under Request Payload. Chrome 27 Right click in the Name/Path panel in the Network tab. Select: Copy all as HAR In the Console, write Count from the top the position of the request you are interested, starting at 0. Store the position in: To get the post data source, execute: even older: Right click on the Name/Path of the entry in the Network tab. Select: Copy entry as HAR In the Console, write To get the post data source, execute: If there is a simpler way, I am happy to hear about it! 这篇关于Chrome:发布数据的来源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
$ b 旧版本
har =
,然后粘贴HAR, 。
pos code>
har.log.entries [pos] .request.postData .text
har =
HAR,然后回车。
har.request.postData.text $ c
$ b Chrome 29–56, and possibly beyond
Older versions
har=
, then paste the HAR, and hit return.pos
har.log.entries[pos].request.postData.text
har=
, then paste the HAR, and hit return.har.request.postData.text