httpie / cli

🥧 HTTPie CLI — modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more.
https://httpie.io
BSD 3-Clause "New" or "Revised" License
32.74k stars 3.68k forks source link

Support for WebAppBoundary Request #1469

Open AbinashSankaran opened 1 year ago

AbinashSankaran commented 1 year ago

Checklist


Enhancement request

For file sending with Form Data, sending with WebAppBoundary syntax is very common and with Httpie, i am not able to send any request to with files in which backend expects WebAppBounday


Problem it solves

Could not use Httpie with files and formdata. Postman handles this scenario well. And it is the common behaviour for JetBrains based IDE HTTP files too for file sending


Additional information, screenshots, or code examples

POST {{host}}/test
Authorization: {{token}}
Content-Type: multipart/form-data; boundary=WebAppBoundary

--WebAppBoundary
Content-Disposition: form-data; name="prospect"; filename="file.csv"

< files/test/file.csv
--WebAppBoundary
Content-Disposition: form-data; name="data"

{"name":"ASDF"}
--WebAppBoundary--
jkbrzt commented 1 year ago

@AbinashSankaran just to clarify: is this issue about the terminal version or web & desktop?

AbinashSankaran commented 1 year ago

Desktop and Web both. Not sure about Terminal version.