如何在IntelliJ的REST Client中将文件作为POST请求的参数发送?

时间:2019-04-25 14:14:43

标签: intellij-idea clion rest-client

我想将<MYURL>/myaddres?path=<MYPATH>&content=<MYCONTENT>发送到具有IntelliJ中基于编辑器的REST客户端的服务,但是要从文件中获取<MYCONTENT>的内容。

有可能吗?

1 个答案:

答案 0 :(得分:0)

是的,您应该键入<符号,然后输入文件的路径:POST

POST http://example.com:8080/api/html/post
Content-Type: application/json

< ./input.json

更多信息:https://www.jetbrains.com/help/idea/exploring-http-syntax.html#provide-request-body

相关问题