Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cURL command fails in Windows CMD console #558

Open
uncmiracle opened this issue Apr 9, 2020 · 1 comment
Open

cURL command fails in Windows CMD console #558

uncmiracle opened this issue Apr 9, 2020 · 1 comment
Labels

Comments

@uncmiracle
Copy link

  • REST Client Version: 0.23.2
  • VSCode Version: 1.43.2
  • OS Version: Windows 10

Steps to Reproduce:

  1. create a request:
GET https://api.github.com/users/octocat/orgs
Content-Type: application/json
  1. "Copy Request as cURL"
  2. paste command in Windows CMD window and run
  3. command fails with error
curl --request GET --url https://api.github.com/users/octocat/orgs --header 'content-type: application/json'
[

]
curl: (6) Could not resolve host: application

Same command works fine in linux bash. Manually changing apostrophe ' to quotation mark " will fix it for Windows CMD console.

@Huachao
Copy link
Owner

Huachao commented Apr 9, 2020

@uncmiracle nice catch, this is related to the underlying code snippet generate library Kong/httpsnippet#115. Currrently, you have to manually replace single quote with double quote or switch to Powershell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants