question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Poll] Raw request body option name

See original GitHub issue

In 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:closed
  • Created 2 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

7reactions
elenalapecommented, May 12, 2021

If it’s a raw request body, what do you think about --raw?

3reactions
BoboTiGcommented, May 18, 2021

Then --raw it will be! Thanks everyone for your participation 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found