10000 [bug]: duplicate query parameters are not handled by curl request generation · Issue #5088 · hoppscotch/hoppscotch · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[bug]: duplicate query parameters are not handled by curl request generation #5088
Open
@garethjudson

Description

@garethjudson

Is there an existing issue for this?

  • I have searched existing issues and this bug hasn't been reported yet

Current behavior

When I create a request with duplicate query parameter names, e.g.:

Image

When I generate a curl request using 'show code', the request includes indexing, rather than just repeating the parameter:

Image

curl --request GET \
  --url 'https://echo.hoppscotch.io/?test[0]=a&test[1]=b&test[2]=c'

Expected result would be to repeat the query parameter verbatim, not add indexing:

curl --request GET \
  --url 'https://echo.hoppscotch.io/?test=a&test=b&test=c'

Steps to reproduce

  1. Enter a url into a get request
  2. add query parameters in the 'parameters tab' with duplicate keys
  3. on the send button, click the drop down arrow, choose 'show code'
  4. choose 'shell - cURL'

Logs and Screenshots

Image

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneed testingNeeds to be tested before merging onto production

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0