如何通过 EVE REST API 中的 URL 进行身份验证?
在带有 curl 的文档中,它看起来像这样:
$ curl -i http://example.com
HTTP/1.1 401 UNAUTHORIZED
Please provide proper credentials.
$ curl -H "Authorization: Basic YWRtaW46c2VjcmV0" -i http://example.com
HTTP/1.1 200 OK
我需要这样的东西:
http://example.com
HTTP/1.1 401 UNAUTHORIZED
Please provide proper credentials.
http://example.com?username=admin&password=secret