WebStorm的REST client使用

来源:互联网 发布:卸载mysql数据库 编辑:程序博客网 时间:2024/04/30 07:05

这个工具不仅限于webstorm,phpstorm中也有,使用应该差不多,官方帮助:https://www.jetbrains.com/phpstorm/help/testing-restful-web-services.html#composeAndSubmitRequest


使用Get方法很简单,这里记录下POST方法的使用

设置好Host/port和Path之后,Request header中添加一项 Content-Type=application/x-www-form-urlencoded

然后RequestBody中,选“text”,设置值为:

name=xxx&intro=yyy&articleTypeId=-1

就可以发送post请求了


0 0
原创粉丝点击