Open
Description
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.:
When I generate a curl request using 'show code', the request includes indexing, rather than just repeating the parameter:
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
- Enter a url into a get request
- add query parameters in the 'parameters tab' with duplicate keys
- on the send button, click the drop down arrow, choose 'show code'
- choose 'shell - cURL'
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