How can I debug a HTTP POST in Chrome?

前端 未结 6 650
花落未央
花落未央 2020-11-22 13:58

I would like to view HTTP POST data that was sent in Chrome.

The data is in memory now, and I have the ability to resubmit the form.

I know that if I resubmit

6条回答
  •  北荒
    北荒 (楼主)
    2020-11-22 14:31

    You can filter for HTTP POST requests with the Chrome DevTools. Just do the following:

    1. Open Chrome DevTools (Cmd+Opt+I on Mac, Ctrl+Shift+I or F12 on Windows) and click on the "Network" tab
    2. Click on the "Filter" icon
    3. Enter your filter method: method:POST
    4. Select the request you want to debug
    5. View the details of the request you want to debug

    Screenshot

    Tested with Chrome Version 53.

提交回复
热议问题