我正在使用elasticsearch cloud免费线索。 获取基本授权的请求在POSTMAN中有效但在终端卷曲或PHP中无效。
接头
Access-Control-Allow-Credentials →true
Access-Control-Allow-Headers →Origin, Accept, Content-Type, Authorization, X-Requested-With
Access-Control-Allow-Methods →DELETE, GET, HEAD, OPTIONS, POST, PUT
Access-Control-Allow-Origin →*
Access-Control-Max-Age →1728000
Connection →keep-alive
Content-Encoding →gzip
Content-Length →262
Content-Type →application/json; charset=UTF-8
Date →Fri, 17 Feb 2017 06:43:12 GMT
Server →fp/0d3c07
X-Found-Handling-Cluster →3aa4393cee54e06b397099c2cb89c0ea
X-Found-Handling-Instance →instance-0000000000
X-Found-Handling-Server →10.67.187.222
我正在运行命令如下
curl -X GET -H "Authorization: Basic ZWxhc3RpYzpOa3BQaDJ3NTlRWVJKa2ZIeWRRQmRXeHc=" "https://3aa4393cee54e06b397099c2cb89c0ea.us-east-1.aws.found.io:9243/"