這個工具不僅限於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的請求接好了