如何使用 PhpStorm REST CLIENT 传递 POST 参数

How to pass POST parameters using PhpStorm REST CLIENT

POST参数在请求体中传递

我需要以哪种格式在 PhpStorm REST CLIENT 中传递它们?

我试过了

参数=值 param:value

没有任何效果。任何帮助表示赞赏

在“请求”选项卡的 Headers 部分(在 REST 客户端 window 中),确保添加 Content-Type header 并将其设置为 application/x-www-form-urlencoded.

当您在 html 中提交表单时,这实际上将请求 header Content-Type 设置为 application/x-www-form-urlencodedmultipart/form-data 以防上传文件它将设置请求 body 与 GET url 参数完全相同,例如 email=test@test.com&password=123123

所以这应该适合你: