mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #2066] [feature]: curl can't parse the url without the protocol header correctly. #681
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#681
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 @watchingfun on GitHub (Jan 17, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2066
Originally assigned to: @kyteinsky on GitHub.
Is there an existing issue for this?
Summary
anwarulislam:bug/body-missing-onimport https://github.com/hoppscotch/hoppscotch/pull/2048
I have cleared the cache and reloaded, but I still can't parse the request body. In addition, I can't parse the url without the protocol header correctly.
Why should this be worked on?
curl -X PUT "localhost:9200/megacorp/employee/1?pretty" -H 'Content-Type: application/json' -d'
{
"first_name" : "John",
"last_name" : "Smith",
"age" : 25,
"about" : "I love to go rock climbing",
"interests": [ "sports", "music" ]
}
'
@liyasthomas commented on GitHub (Jan 17, 2022):
I guess you should add a space between
-dand'.This cURL works for me:
Keeping this issue open to fix
originbeingnullif empty.@watchingfun commented on GitHub (Jan 17, 2022):
sorry, my bad,miss space
@AndrewBastin commented on GitHub (Jan 21, 2022):
@kyteinsky do you want to pick this issue up ?
@kyteinsky commented on GitHub (Jan 21, 2022):
@AndrewBastin
With pleasure.
Just to make sure I understand the issue here, the protocol has to be inferred and prepended if not given, right?
If it's
And which origin is being talked about here?
@AndrewBastin commented on GitHub (Jan 21, 2022):
@kyteinsky
We use the URL API to parse the URL which gets imported from cURL but it seems to not be working correctly.
Also another possible implementation, we could rewrite the entire cURL Importer system under insomnia-importers which will be more better overall. We can implement it as a separate importer in our new Importer system (refer: https://github.com/hoppscotch/hoppscotch/tree/main/packages/hoppscotch-app/helpers/import-export). If you have any doubts, feel free to ping me!
Assuming you are picking this up, I am assigning it to you