HTTP Client Binary POST
已回答
Hi,
all I can find about IntelliJ's HTTP Client and POST requests is how to send x-www-form-urlencoded, JSON etc.
But nothing how to send a simple binary ZIP-File. How do I send a simple ZIP as byte array? In Postman it's simply "binary", but here? The following code does never work.
POST https://localhost:8080/zip
Content-Type: application/zip
< ./zipFile.zip
Content-Type: application/zip
< ./zipFile.zip
请先登录再写评论。
Hi Jan-Hendrik - I asked the developers to reply to your query in https://youtrack.jetbrains.com/issue/IDEA-308463
Hey Jan,
Have you tried to add an empty line between your headers options and body content:
I was looking for how to send an image (Content-Type: image/jpeg) and it worked for me ;)