curl: could not resolve host: Authorization

Schrieb ich diese curl-Befehl scheint nicht zu funktionieren.

curl -H "Content-Type: application/json" -X PUT "Authorization: Bearer {token}" -d "{"login":"user1","password":"xxx"}" https://localhost:8443/users/user1 -k

Ich habe versucht zu ändern Anführungszeichen, aber es funktioniert auch nicht. Alles, was ich habe

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

{"error":"unauthorized","error_description":"Full Authentifizierung erforderlich ist, um Zugang zu dieser Ressource"}

Die Autorisierung funktioniert gut, obwohl. Ich bin mir sicher, dass das token korrekt ist.

InformationsquelleAutor Someone | 2016-02-24
Schreibe einen Kommentar