[root@somehost ~]# curl -iLvk -u admin:admin -H "X-Requested-By: ambari" -X GET http://somehost.abc.com:8080/api/v1/check * About to connect() to somehost.abc.com port 8080 (#0) * Trying xx.xxx.xxx.xx... connected * Connected to somehost.abc.com (xx.xxx.xxx.xx) port 8080 (#0) * Server auth using Basic with user 'admin' > GET /api/v1/check HTTP/1.1 > Authorization: Basic YWRtaW46YWRtaW4= > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.27.1 zlib/1.2.3 libidn/1.18 libssh2/1.4.2 > Host: somehost.abc.com:8080 > Accept: */* > X-Requested-By: ambari > < HTTP/1.1 200 OK HTTP/1.1 200 OK < X-Frame-Options: DENY X-Frame-Options: DENY < X-XSS-Protection: 1; mode=block X-XSS-Protection: 1; mode=block < User: admin User: admin < Set-Cookie: AMBARISESSIONID=1jj8m27ac56t61l8wpmkvdpqmk;Path=/;HttpOnly Set-Cookie: AMBARISESSIONID=1jj8m27ac56t61l8wpmkvdpqmk;Path=/;HttpOnly < Expires: Thu, 01 Jan 1970 00:00:00 GMT Expires: Thu, 01 Jan 1970 00:00:00 GMT < Content-Type: text/plain Content-Type: text/plain < Vary: Accept-Encoding, User-Agent Vary: Accept-Encoding, User-Agent < Content-Length: 7 Content-Length: 7 < Server: Jetty(8.1.17.v20150415) Server: Jetty(8.1.17.v20150415) < * Connection #0 to host somehost.abc.com left intact * Closing connection #0 RUNNING[root@somehost ~]#