usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
27.17k stars 1.24k forks source link

http POST application/octet-stream #2435

Open dodalovicgran opened 5 months ago

dodalovicgran commented 5 months ago

I have checked the following:

Describe the bug

Hi, I'm trying to achieve this with bruno, but this way of posting application/octet-stream seems not to be possible:

curl -X 'POST' \
  'https://foo.bar/binary?userMessageId=123' \
  -H 'accept: application/json' \
  -H 'tokenType: jwt' \
  -H 'userId: 456' \
  -H 'vehicleId: 789' \
  -H 'Content-Type: application/octet-stream' \
  --data-binary '@temp.txt'

.bru file to reproduce the bug

No response

Screenshots/Live demo link

image

lohxt1 commented 5 months ago

https://github.com/usebruno/bruno/discussions/385#discussioncomment-7196674

try this script and see if it satisfies your needs ?