개요
curl: (52) Empty reply from server
[root@localhost ~]# curl localhost:9200
curl: (52) Empty reply from server
[root@localhost ~]# curl https://localhost:9200
curl: (60) Peer's Certificate issuer is not recognized.
More details here: http://curl.haxx.se/docs/sslcerts.html
...
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
[root@localhost ~]# curl https://localhost:9200 -k
Unauthorized
[root@localhost ~]# curl https://localhost:9200 -k -u admin:admin
{
"name" : "5bee8264a65f",
"cluster_name" : "docker-cluster",
"cluster_uuid" : "ImWOEJTCR9G32oKTizMnCQ",
...
"tagline" : "You Know, for Search"
}