mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 09:16:03 +03:00
[GH-ISSUE #2099] POST body does not allow URL as a parameter [bug]: #703
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#703
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 @Zaffer on GitHub (Jan 30, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2099
Is there an existing issue for this?
Current behavior
When I send a POST with a URL encoded parameter the api rejects it as the Hoppscotch encode it a second time.

Given this set of input:
The problem is that a URL has semi colon ":" so this gets removed from the paramater as it treats it like a key: value symbol.
I would expect there to be RAW input for posting and allow to make a perfectly reasonable POST such as the following:
`// Line breaks are for legibility only.
POST https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token HTTP/1.1
Host: login.microsoftonline.com
Content-Type: application/x-www-form-urlencoded
client_id=535fb089-9ff3-47b6-9bfb-4f1264799865
&scope=https%3A%2F%2Fgraph.microsoft.com%2F.default
&client_secret=qWgdYAmab0YSkuL1qKv5bPX
&grant_type=client_credentials`
Steps to reproduce
the value field with automatically remove the semi-colon
Environment
Production
Version
Cloud
@liyasthomas commented on GitHub (Feb 17, 2022):
Fixed in
github.com/hoppscotch/hoppscotch@819b111383, hence closing.