Support for httpie stdin #58
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: mia/0x0#58
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
httpie has super sweet syntax for posting files via stdin:
But it causes a 400 response from 0x0:
I don't know much about HTTP spec so I'm unsure if this is an issue with how httpie sends files in this way or if an edge case has been missed on the server side.
That syntax only works for text/json data instead of multipart/form data. It won't work with this project.
However, the following bash script will do exactly what you want.
You could add this script to your path and use it instead of httpie.