Run a cURL code on a terminal

HI,
In the tutorial “Basic Quick Start Guide” under " Quick Start Guide" section 11, there is an example on how to use cURL to invoke the entered values:
“You can copy the entire text of the command and paste in a terminal window to run it outside of the browser”

The text is:
curl -X “POST” “https://api.backendless.com/07A3A07A-9B29-4282-9715-CF880009D9DB/9E887DC9-E088-4EAF-BEBB-9C5D5298728A/services/MyService/helloWorld
-H ‘Content-Type: application/json’
-H ‘Accept: application/json’

I hope this isn’t a stupid question: I don’t know what terminal window should I use to perform that.
Do I need to install some kind of a terminal? If so, can you suggest a tutorial on how to install it?

I’m using windows 10.
Backendless Version 5.6.46

Thanks!!

Hello @Arik_Sheffer

in Windows 10 it’s called Command Prompt.
Take a look at this article https://www.addictivetips.com/windows-tips/use-curl-on-windows-10/

Regards, Vlad

Hi,
Thanks for your help.
Do I need to run the command line from a specific folder?
When I run:
curl -X “POST” “https://api.backendless.com/07A3A07A-9B29-4282-9715-CF880009D9DB/9E887DC9-E088-4EAF-BEBB-9C5D5298728A/services/MyService/helloWorld
-H ‘Content-Type: application/json’
-H ‘Accept: application/json’
-d $’“Arik”’

I receive the following response:
"hello null"curl: (6) Could not resolve host: -H
curl: (6) Could not resolve host: 'Content-Type
curl: (6) Could not resolve host: application
curl: (6) Could not resolve host: -H
curl: (6) Could not resolve host: 'Accept
curl: (6) Could not resolve host: application
curl: (6) Could not resolve host: -d
curl: (6) Could not resolve host: $‘Arik’

What am I doing wrong?

Try replacing double quotes from these:


to these:
"

And re-run the command.

Mark

Thank Mark,
The cURL is copied to the cmd prompt directly from the CODE section after invoking.
The “ is not in the original code but pasted that way to the forum here.
The original command has the right " so I’m afraid this is not the problem.

Any other idea?

take a look at this answer https://stackoverflow.com/a/12498151