がURLの取得:(6)ホストを解決できませんでした:このコマンドの後にアプリケーションエラー:カール:(6)ホストを解決できませんでした:アプリケーション
curl -i -H 'Content-Type: application/json' -d '{"Code":"FR","Name":"France"}' http://127.0.0.1:8080/countries
完全なエラーログ:
curl: (6) Could not resolve host: application
HTTP/1.1 415 Unsupported Media Type
Content-Type: application/json; charset=utf-8
X-Powered-By: go-json-rest
Date: Sat, 02 Apr 2016 05:31:20 GMT
Content-Length: 73
{
"Error": "Bad Content-Type or charset, expected 'application/json'"
}
を
このコマンドで何が問題になっていますか?
編集:
私は窓に次のように編集私の問題を解決しました:"{/"Code/":/"FR/"}"
は私の問題を解決しました。ありがとうございました – JJacquet