[GH-ISSUE #5559] [bug]: URL not recognized when --compressed flag is followed by URL in imported cURL command #2144

Open
opened 2026-03-16 23:21:27 +03:00 by kerem · 6 comments
Owner

Originally created by @SStarbuckS on GitHub (Nov 4, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5559

Originally assigned to: @ankur-2103 on GitHub.

Is there an existing issue for this?

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

Platform

Desktop App

Browser

Chrome

Operating System

Windows

Bug Description

When importing a cURL command that includes the --compressed flag followed directly by the request URL, Hoppscotch fails to recognize the URL. The request body is imported correctly, but the request URL is missing.

Example cURL:

curl -H 'Host: www.domai.name'
-H 'Cookie: GUID=abc123zxcasdqwe'
-H 'sec-fetch-user: ?1'
-H 'sec-fetch-dest: document'
-H 'sec-ch-ua-full-version-list: "(Not(A:Brand";v="99.0.0.0", "Google Chrome";v="134", "Chromium";v="134"'
-H 'priority: u=0, i'
--compressed 'https://www.domai.name/'

Steps to reproduce:

  1. Open Hoppscotch desktop app.

  2. Import the above cURL command.

  3. Observe that the request body imports correctly, but the URL is missing.

Expected behavior:
Hoppscotch should correctly parse and import the request URL even when it follows the --compressed flag.

Deployment Type

Hoppscotch Cloud

Version

Hoppscotch v2025.10.0

Originally created by @SStarbuckS on GitHub (Nov 4, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5559 Originally assigned to: @ankur-2103 on GitHub. ### Is there an existing issue for this? - [x] I have searched existing issues and this bug hasn't been reported yet ### Platform Desktop App ### Browser Chrome ### Operating System Windows ### Bug Description When importing a cURL command that includes the `--compressed` flag followed directly by the request URL, Hoppscotch fails to recognize the URL. The request body is imported correctly, but the request URL is missing. Example cURL: curl -H 'Host: www.domai.name' \ -H 'Cookie: GUID=abc123zxcasdqwe' \ -H 'sec-fetch-user: ?1' \ -H 'sec-fetch-dest: document' \ -H 'sec-ch-ua-full-version-list: "(Not(A:Brand";v="99.0.0.0", "Google Chrome";v="134", "Chromium";v="134"' \ -H 'priority: u=0, i' \ --compressed 'https://www.domai.name/' Steps to reproduce: 1. Open Hoppscotch desktop app. 2. Import the above cURL command. 3. Observe that the request body imports correctly, but the URL is missing. Expected behavior: Hoppscotch should correctly parse and import the request URL even when it follows the --compressed flag. ### Deployment Type Hoppscotch Cloud ### Version Hoppscotch v2025.10.0
Author
Owner

@ankur-2103 commented on GitHub (Nov 5, 2025):

Hi! Can I work on this issue?

<!-- gh-comment-id:3488636025 --> @ankur-2103 commented on GitHub (Nov 5, 2025): Hi! Can I work on this issue?
Author
Owner

@liyasthomas commented on GitHub (Nov 5, 2025):

You can give it a try @ankur-2103.

<!-- gh-comment-id:3489332476 --> @liyasthomas commented on GitHub (Nov 5, 2025): You can give it a try @ankur-2103.
Author
Owner

@SStarbuckS commented on GitHub (Nov 5, 2025):

Hi! Can I work on this issue?

Sure! Thanks for taking this up 😊
Let me know if you need any additional details or test cases.

<!-- gh-comment-id:3489515596 --> @SStarbuckS commented on GitHub (Nov 5, 2025): > Hi! Can I work on this issue? Sure! Thanks for taking this up 😊 Let me know if you need any additional details or test cases.
Author
Owner

@ankur-2103 commented on GitHub (Nov 5, 2025):

Awesome, thanks! 😄

<!-- gh-comment-id:3494113707 --> @ankur-2103 commented on GitHub (Nov 5, 2025): Awesome, thanks! 😄
Author
Owner

@ankur-2103 commented on GitHub (Nov 7, 2025):

Submitted a fix — have a look when you get a chance 😊 Open to feedback! 💬

<!-- gh-comment-id:3500627687 --> @ankur-2103 commented on GitHub (Nov 7, 2025): Submitted a fix — have a look when you get a chance 😊 Open to feedback! 💬
Author
Owner

@ankur-2103 commented on GitHub (Nov 7, 2025):

Thanks for the update! I’ll look into the failing test case and push a fix soon.

<!-- gh-comment-id:3501016123 --> @ankur-2103 commented on GitHub (Nov 7, 2025): Thanks for the update! I’ll look into the failing test case and push a fix soon.
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#2144
No description provided.