cURL post JSON data on Windows
摘要: On Windows, the key to send JSON data is double-quotes like this
On Windows, the key to send JSON data is double-quotes like this
-d "{\"name\":\"Spring Forever\"}"
cURL to POST a JSON data
curl -X POST localhost:8080/books -H "Content-type:application/json" -d "{\"name\":\"Spring Forever\",\"author\":\"pivotal\"}"
上一篇:
log4j2 Failed to load class org.slf4j.impl.StaticLoggerBinder
下一篇: Java ArrayIndexOutOfBoundsException example
下一篇: Java ArrayIndexOutOfBoundsException example