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...
# New Payload tab in the Network panel Use the new Payload tab in the Network panel when you inspect a network request with payload. Previously, the payload information is available under the Headers tab.
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 har=
, then paste the HAR, and hit return.
Count from the top the position of the request you are interested, starting at 0. Store the position in: pos
To get the post data source, execute: har.log.entries[pos].request.postData.text
even older:
Right click on the Name/Path of the entry in the Network tab.
Select: Copy entry as HAR
In the Console, write har=
, then paste the HAR, and hit return.
To get the post data source, execute: har.request.postData.text
If there is a simpler way, I am happy to hear about it!
it's easier if you:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With