Get HTTP Body of Form in JavaScript

后端 未结 2 812
北海茫月
北海茫月 2020-12-04 01:09

Is it possible in Javascript to get the contents of the HTTP Body of the resulting HTTP request that would be sent when a Form is submitted?

Say I have a Form of typ

2条回答
  •  心在旅途
    2020-12-04 01:20

    No. There are no APIs that expose that information.

    You can attempt to manually construct the request, but there's no way to get the browser to prepare it for you.

提交回复
热议问题