Support for sending body data that isn't in key:value format
See original GitHub issueWe should support somehow sending request body
data as raw string. Without the requirement of providing key=value pair. This is related to jkbrzt/httpie#399 . In the httpie
library, the issue is solved by command input redirection… Eg.:
echo 'some string value' | http POST example.com/person/1
Which sort of complicates things for this library… I’m not sure how we should approach this.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Add a Request Body to a POST Request | API Connector
Try adding in a content type into the header as described above, where Key = content-type, and Value = application/json. Only JSON request...
Read more >Difference Between form-data, x-www-form-urlencoded and ...
We need to enter the key-value pairs for sending the request body to the server, and Postman will encode the desired data before...
Read more >Building requests | Postman Learning Center
The Body tab in Postman allows you to specify the data you need to send with a request. You can send various different...
Read more >Accepting Raw Request Body Content in ASP.NET Core API ...
Lets start with a non-raw request, but rather with posting a string as JSON since that is very common. You can accept a...
Read more >JSON POST request using app sends empty body · Issue #8455
Setting Raw JSON for type in Body, putting valid JSON in the Body field, and sending. Endpoint receives request with right Content-Length ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@eliangcs , that is certainly better, I’d rather introduce new command
sh
orshell
instead of explanation mark which could takeunquoted
,squoted
ordquoted
string as an argument… I think it would be more transparent that way …The example would become:
Edit: As I think about it, the explanation mark is good as well…
The feature has been added to HTTPie (
--raw
option, https://github.com/httpie/httpie/tree/master/docs#request-data-via---raw). It will be made available for HTTP Prompt for the next HTTPie release (soon).