Can't get cURL to work in Windows cmd

I’m trying to test out some of the basic examples that are listed on https://dev.twitch.tv/docs/api and I’m having some issues with getting the cURL commands to work. I’m running a command like this:

curl -H 'Client-ID: my_client_id' -X GET 'https://api.twitch.tv/helix/streams?user_login=bobross'

and unfortunately all I keep getting in return is:

curl: (6) Could not resolve host: my_client_id’
curl: (6) Could not resolve host: 'https

I have tested the same command on https://onlinecurl.com/ and it’s worked fine, so I know that it’s something on my end that’s wrong, I’m just not sure what.

Any help would be appreciated.

On, yours and mines, windows use " instead of '

curl -H “Client-ID: my_client_id” -X GET “https://api.twitch.tv/helix/streams?user_login=bobross

1 Like

I knew it was something stupid and simple that I was overlooking. Thanks…

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.