[Poll] Raw request body option name
See original GitHub issueIn order to tackle #534, we would like to ask for the community assistance to find the most approprite option name 😃
In short, we are implementing a way to specify the raw request body. Example:
$ http --new-option 'My name is John' --offline pie.dev/post
POST /post HTTP/1.1
Accept: application/json, */*;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Length: 15
Content-Type: application/json
Host: pie.dev
User-Agent: HTTPie/2.5.0-dev
My name is John
It is an alternative to passing the body via STDIN
:
$ echo -n 'My name is John' | http --offline pie.dev/post
POST /post HTTP/1.1
Accept: application/json, */*;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Content-Length: 15
Content-Type: application/json
Host: pie.dev
User-Agent: HTTPie/2.5.0-dev
My name is John
I will add a comment per suggestion and you will only have to 👍 or 👎 to let us know your preference. If you have suggestions, feel free to comment too.
Here is the list of used names that cannot be chosen again:
body, -b
-c
-d
-p
,-P
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Read raw Request.Body in Asp.Net Core MVC Action with ...
I need to process the raw request body in and MVC core controller that has route parameters [HttpPut] [Route("api/foo/{fooId}")] public ...
Read more >Solved: Request Body Missing in Raw Request view
Recently I submitted a post request with json data, but i can not find the request body in raw view. I have checked...
Read more >All types of POST Requests with Postman | APIs with Valentine
The primary purpose of a POST request method is to send a body with ... select the POST request method, click on Body...
Read more >Raw request body - HTTPie 3.2.1 (latest) docs
Formatting has the following effects: HTTP headers are sorted by name. JSON data is indented, sorted by keys, and unicode escapes are converted...
Read more >HTTP Request - Gatling
This request name is important because it will act as a key when ... In this section, you can find the various methods...
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
If it’s a raw request body, what do you think about
--raw
?Then
--raw
it will be! Thanks everyone for your participation 😃