[GH-ISSUE #4262] [bug]: import curl missing query parameters #1544

Closed
opened 2026-03-16 20:47:10 +03:00 by kerem · 4 comments
Owner

Originally created by @dungmv on GitHub (Aug 14, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4262

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

impor curl with query

Steps to reproduce

curl -X GET 'http://localhost:8080/api/public-url' \
  --url-query 'ttl=60' \
  --url-query 'role=admin' \
  --header 'secret-key: 123456'

Environment

Production

Version

Self-hosted

Originally created by @dungmv on GitHub (Aug 14, 2024). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4262 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior impor curl with query ### Steps to reproduce ``` curl -X GET 'http://localhost:8080/api/public-url' \ --url-query 'ttl=60' \ --url-query 'role=admin' \ --header 'secret-key: 123456' ``` ### Environment Production ### Version Self-hosted
kerem 2026-03-16 20:47:10 +03:00
Author
Owner

@tasnim0tantawi commented on GitHub (Aug 14, 2024):

curl -X GET "http://localhost:8080/api/public-url?ttl=60&role=admin" \
-H "secret-key: 123456"

Tried this way and it works

<!-- gh-comment-id:2288145178 --> @tasnim0tantawi commented on GitHub (Aug 14, 2024): ``` curl -X GET "http://localhost:8080/api/public-url?ttl=60&role=admin" \ -H "secret-key: 123456" ``` Tried this way and it works
Author
Owner

@dungmv commented on GitHub (Aug 14, 2024):

Why can't Hoppscotch parse cURL syntax and automatically populate query parameters?

<!-- gh-comment-id:2288363459 --> @dungmv commented on GitHub (Aug 14, 2024): Why can't Hoppscotch parse cURL syntax and automatically populate query parameters?
Author
Owner

@Gaket commented on GitHub (Aug 29, 2024):

@dungmv, I'd say that your example is not a valid terminal command:
image

Though I guess it shouldn't be so hard to fix it, I wouldn't expect any tool to export requests to curl formatted this way.

<!-- gh-comment-id:2318549162 --> @Gaket commented on GitHub (Aug 29, 2024): @dungmv, I'd say that your example is not a valid terminal command: <img width="739" alt="image" src="https://github.com/user-attachments/assets/0de6bff9-0de1-4ab1-9b78-b12f0de20dc6"> Though I guess it shouldn't be so hard to fix it, I wouldn't expect any tool to export requests to curl formatted this way.
Author
Owner

@dungmv commented on GitHub (Aug 30, 2024):

@Gaket sorry, it miss slash at the end of the line,

<!-- gh-comment-id:2319735416 --> @dungmv commented on GitHub (Aug 30, 2024): @Gaket sorry, it miss slash at the end of the line,
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1544
No description provided.