mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #3109] Import CURL does not work #1023
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#1023
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 @oridamari on GitHub (Jun 4, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3109
Hey,
Trying to import a valid CURL and it does not work, it only sets the method type, and sometimes sets the headers and body,
and the URL is set to https://echo.hoppscotch.io/
curl --location 'http://my-private-url.test.com'
--header 'Accept: application/jsonx'
--header 'Content-Type: application/jsonx'
--data '{"a":1,"b":2,"c":3}'
the curl imports fine in Postman.
Can you please check and advise? thanks
@pratyush-pankaj commented on GitHub (Jun 6, 2023):
Same issue with me. Please someone fix this
@bermudi commented on GitHub (Jun 7, 2023):
Possibly related https://github.com/hoppscotch/hoppscotch/issues/1159
@micky2333 commented on GitHub (Jun 27, 2023):
Yes, I have the same problem Import CURL can't import request header and request body
Please someone fix this
This function is very important
curl 'https://blog.52ipc.top/joe/api' \ -H 'Connection: keep-alive' \ -H 'User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1 wechatdevtools/1.06.2306020 MicroMessenger/8.0.5 webview/' \ -H 'token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1N' \ -H 'content-type: application/json' \ -H 'Accept: */*' \ -H 'Sec-Fetch-Site: cross-site' \ -H 'Sec-Fetch-Mode: cors' \ -H 'Sec-Fetch-Dest: empty' \ -H 'Referer: https://servicewechat.com/wx7e2a0ea0a73932f3/devtools/page-frame.html' \ --data-binary '{"pageNum":1,"pageSize":100,"cityId":"110100","categoryId":"","isFirstPage":"1"}' \ --compressed@liyasthomas commented on GitHub (Jun 27, 2023):
Resolved in #3152.
@chaoqunya commented on GitHub (Jun 30, 2023):
Still cannot import curl command like this one