intellij-idea - 如何在IntelliJ的REST客户端中将文件作为POST请求的参数发送?

标签 intellij-idea clion rest-client

我要发<MYURL>/myaddres?path=<MYPATH>&content=<MYCONTENT>到 IntelliJ 中基于编辑器的 REST 客户端的服务,但采用 <MYCONTENT> 的内容从一个文件。

是否可以?

最佳答案

是的,您应该输入 <符号后跟文件路径: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

关于intellij-idea - 如何在IntelliJ的REST客户端中将文件作为POST请求的参数发送?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55851416/

相关文章:

java - 从 IntelliJ IDEA (Android) 运行 JUnit 测试时为 "Class not found"

mvvm - 列表框中不允许使用ZK元素 'template'

gcc - CMake 错误 : configure_file Problem Configuring File - with CLion

c++ - 无法在 CLion 中构建 C++ 项目

internet-explorer - 在 Internet Explorer 中工作但在 Firefox 中不起作用

java - IntelliJ 上的 cucumber : getting errors as soon as I set up new project

java - 如何在intelliJ或eclipse中创建包含所有类和字节代码的JAR文件?

CLion Clang-Tidy 使用带符号整数操作数和二进制按位运算符

ruby - 使用 Ruby 转义和下载 URL

ruby - 使用 Rest Client Ruby Gem 的身份验证 header