PhpStorm的REST client使用

这个工具不仅限于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 
就是http的请求接好了

posted @ 2020-03-05 15:22  叨叨的蜗牛  阅读(1149)  评论(0)    收藏  举报