hoppscotch icon indicating copy to clipboard operation
hoppscotch copied to clipboard

[bug]: REST GET request always send null body

Open gturi opened this issue 10 months ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current behavior

When sending a GET request with a body the body is not sent but the curl is correctly generated. Even though a GET request with body is not standard by REST specification it is still possible to create a REST endpoint that accepts a body.

Steps to reproduce

  1. Create a get request with a json body.
  2. Send it to an endpoint.
  3. Verify that the received body is null.

Environment

Production

Version

Cloud

gturi avatar Apr 12 '24 15:04 gturi

Hey @gturi I want to work on this can you assign this to me?

aryans1319 avatar Apr 15 '24 12:04 aryans1319

@aryans1319 I am not the owner of the repo, so I do not think I can assign it to you. But if you want to work on it, I think you can fork the repo and create a branch that closes this issue

gturi avatar Apr 15 '24 14:04 gturi

@Liamhhhhh even though that product may work, I would prefer to just have it fixed here. Moreover, as far as I know that product is not open source, and I do not want to go back to a Postman-like situation where I get locked in to a closed source vendor which at a certain point decides that all the APIs I develop are must be uploaded to their servers.

gturi avatar Jun 04 '24 06:06 gturi