mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #5088] [bug]: duplicate query parameters are not handled by curl request generation #1933
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#1933
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 @garethjudson on GitHub (May 21, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5088
Is there an existing issue for this?
Current behavior
When I create a request with duplicate query parameter names, e.g.:
When I generate a curl request using 'show code', the request includes indexing, rather than just repeating the parameter:
Expected result would be to repeat the query parameter verbatim, not add indexing:
Steps to reproduce
Logs and Screenshots
Environment
Production
Hoppscotch Version
Cloud
Version 25.4.2 (20250508.111240)
Interceptor
Not Applicable - Issue not related to network requests
Browsers Affected
No response
Operating System
MacOS
Additional Information
No response
@arifmohammad30 commented on GitHub (May 21, 2025):
I'd like to work on this. Planning to change the cURL generator to use repeated keys instead of indexed arrays. Let me know if that’s okay.
@soumyamakkar commented on GitHub (Jun 23, 2025):
Can I be assigned this issue?
@liyasthomas commented on GitHub (Jun 23, 2025):
If @arifmohammad30 isn’t working on this, you can give it a try, @soumyamakkar. I’d be happy to review a PR.
@soumyamakkar commented on GitHub (Jun 24, 2025):
its happening because of http snippet's default behavior of indexing duplicate query params... will it be ok to replace it with a manually built cURL command?
@rafalaidlaw commented on GitHub (Jun 29, 2025):
@liyasthomas can you assign this to me? @soumyamakkar Are you working on this?
@soumyamakkar commented on GitHub (Jun 30, 2025):
yes i am working on this.
@Manasvisharma09 commented on GitHub (Jul 23, 2025):
Hi! I want to work on this 🙂
@jamesgeorge007 commented on GitHub (Jul 31, 2025):
Hi, closing this issue since it's addressed in the latest release.
Addressed via https://github.com/hoppscotch/httpsnippet/pull/5.