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