idea httpRequest

Last updated on November 20, 2024 am

🧙 Questions

不想使用postman这类的工具,可以使用idea自带的httprequest工具

☄️ Ideas

请求文件上传接口
POST {{host}}/files/upload
Content-Type: multipart/form-data; boundary=WebAppBoundary
Authorization: {{token}}

--WebAppBoundary
Content-Disposition: form-data; name="${paramName}"; filename="${fileName}"

< C:\Users\ispon\Desktop\users.csv 
--WebAppBoundary
Content-Disposition: form-data; name="uploadId"

1618973923409
--WebAppBoundary
/**
  * POST http://localhost:8080/lic/uploadLicense Content-Type: multipart/form-data;
  * boundary=WebAppBoundary Authorization: eyJhbGciOiJIUzI1NiJ9.token
  *
  * <p>
  * --WebAppBoundary Content-Disposition: form-data; name="license"; filename="vs-picgo-data.json"
  * Content-Type: application/json
  *
  * <p>
  * < /Users/ispong/vs-picgo-data.json --WebAppBoundary--
  */

idea httpRequest
https://ispong.isxcode.com/spring/idea/idea httpRequest/
Author
ispong
Posted on
March 17, 2022
Licensed under