Skip to main content
fixed a typo
Source Link
Marc Tarin
  • 3.2k
  • 19
  • 52

Don't use single quotes, use double quotes and escape the inner doublesdouble quotes:

curl -g -i -X POST -H "Content-Type:application/json" -d "{ \"profilphotoid\" : 1 }" localhost:8080/users 

Note: -g is useless in this example.

Don't use single quotes, use double quotes and escape the inner doubles quotes:

curl -g -i -X POST -H "Content-Type:application/json" -d "{ \"profilphotoid\" : 1 }" localhost:8080/users 

Note: -g is useless in this example.

Don't use single quotes, use double quotes and escape the inner double quotes:

curl -g -i -X POST -H "Content-Type:application/json" -d "{ \"profilphotoid\" : 1 }" localhost:8080/users 

Note: -g is useless in this example.

Source Link
Marc Tarin
  • 3.2k
  • 19
  • 52

Don't use single quotes, use double quotes and escape the inner doubles quotes:

curl -g -i -X POST -H "Content-Type:application/json" -d "{ \"profilphotoid\" : 1 }" localhost:8080/users 

Note: -g is useless in this example.