We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I need to send an image data (multipart/form-data) in the request body, but it has to be inside the field "image". How to achieve this?
multipart/form-data
"image"
Help would be much appreciated.
The text was updated successfully, but these errors were encountered:
You need to prepare a body file for multipart/form-data.
I think we can do it by these steps.
Create body.txt. The boundary ---------------------------9051914041544843365972754766 is arbitrary.
---------------------------9051914041544843365972754766
---------------------------9051914041544843365972754766 Content-Disposition: form-data; name="image"; filename="example.jpg" Content-Type: image/jpeg
cat body.txt example.jpg > body
oha -H "Content-Type: multipart/form-data; boundary=---------------------------9051914041544843365972754766" -D ./body
Sorry, something went wrong.
Would be nice to have a -F "file=@/path/to/your/file.jpg" flag like cURL has
-F "file=@/path/to/your/file.jpg"
No branches or pull requests
I need to send an image data (
multipart/form-data
) in the request body, but it has to be inside the field"image"
. How to achieve this?Help would be much appreciated.
The text was updated successfully, but these errors were encountered: