mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #5559] [bug]: URL not recognized when --compressed flag is followed by URL in imported cURL command #2144
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#2144
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 @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?
Platform
Desktop App
Browser
Chrome
Operating System
Windows
Bug Description
When importing a cURL command that includes the
--compressedflag 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:
Open Hoppscotch desktop app.
Import the above cURL command.
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
@ankur-2103 commented on GitHub (Nov 5, 2025):
Hi! Can I work on this issue?
@liyasthomas commented on GitHub (Nov 5, 2025):
You can give it a try @ankur-2103.
@SStarbuckS commented on GitHub (Nov 5, 2025):
Sure! Thanks for taking this up 😊
Let me know if you need any additional details or test cases.
@ankur-2103 commented on GitHub (Nov 5, 2025):
Awesome, thanks! 😄
@ankur-2103 commented on GitHub (Nov 7, 2025):
Submitted a fix — have a look when you get a chance 😊 Open to feedback! 💬
@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.