-
1. Re: HTTP (JSON-like) API - domain mode
neo.infinite Mar 14, 2014 10:14 AM (in response to neo.infinite)I found a strange observation. When I tried to do the same thing via the console using curl, I saw a new registry for management realm (in bold)
and it gave me result successfully. Once this worked, even the calls from the (firefox) poster as described above are now working fine.
curl --digest -L -D - http://user:pwd@localhost:9990/management --header "Content-Type: application/json" -d '{"operation":"read-attribute","address":[{"host":"myhost09"},{"server":"server-node-A"}],"name":"server-state"}'
HTTP/1.1 401 Unauthorized
Content-length: 0
Www-authenticate: Digest realm="ManagementRealm",nonce="454825e7664ddd1fb62e70f4a78e3b56"
Date: Thu, 06 Mar 2014 15:57:04 GMTHTTP/1.1 200 OK
Transfer-encoding: chunked
Content-type: application/json
Date: Thu, 06 Mar 2014 15:57:04 GMT{"outcome" : "success", "result" : "running"}