mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #2828] [bug]: GET Request not using Content-Type application/json Header #910
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#910
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MatheusGrilo on GitHub (Oct 27, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2828
Is there an existing issue for this?
Current behavior
My JSON on Body do not send when I use GET method (with and without Header modification):



My console.log(req.body) and everything I want on body:

Tested on Google Chrome's App and on Hoppscotch.io itself, also tried to remove


<<baseUrl>>with no success. Tested on localhost and on Heroku.Works fine with Insomnia as you can see bellow:
My console.log(req.body) and everything I want on body with Insomnia:

Steps to reproduce
Use GET Method and try to send a Json Body.
Get undefined as result.
Environment
Production
Version
Local
@AndrewBastin commented on GitHub (Oct 27, 2022):
Due to implementation limitations of the browser, I don't think we will be able to support/implement it directly.
Along with that, sending a body on GET is generally an undefined behaviour in the HTTP spec.
Welcoming discussions on this.
@MatheusGrilo commented on GitHub (Nov 5, 2022):
Okay, I will accept that as an answer since I won't use this in production, and was only using in development. Was just an idea since it's possible for tests, but not a real thing.
@thomas-frantz commented on GitHub (Oct 3, 2023):
The only problem with this is when we can't control the APIs. I develop our own company API, and I can do that according to the spec just fine. But I can't control the various other vendors and customers APIs we integrate with who don't do this, many of which do use a body on GET requests. Which essentially makes this unusable for us, unless I'm missing something.