curl: (6) Konnte nicht aufgelöst host: Anwendung

Immer url: (6) Konnte nicht aufgelöst host: Anwendung Fehler nach diesem Befehl :

curl -i -H 'Content-Type: application/json' -d '{"Code":"FR","Name":"France"}' http://127.0.0.1:8080/countries

Vollständige Fehlerprotokoll:

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'"
}

Was ist falsch bei diesem Befehl?

Edit:

Ich mein problem gelöst Bearbeitung, wie dies in windows : "{/"Code/":/"FR/"}"

InformationsquelleAutor Yeahia2508 | 2016-04-01

Schreibe einen Kommentar