Fix curl Unauthorized on windows (#3381)

This commit is contained in:
javalover123 2023-03-11 05:36:57 +08:00 committed by GitHub
parent 46a34266df
commit ad34a05857
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ An OpenSearch node in its default configuration (with demo certificates and user
1. Open a new command prompt and send requests to the server to verify that OpenSearch is running. Note the use of the `--insecure` flag, which is required because the TLS certificates are self-signed.
- Send a request to port 9200:
```bat
curl.exe -X GET https://localhost:9200 -u 'admin:admin' --insecure
curl.exe -X GET https://localhost:9200 -u "admin:admin" --insecure
```
You should get a response that looks like this:
```bat
@ -95,7 +95,7 @@ An OpenSearch node in its default configuration (with demo certificates and user
```
- Query the plugins endpoint:
```bat
curl.exe -X GET https://localhost:9200/_cat/plugins?v -u 'admin:admin' --insecure
curl.exe -X GET https://localhost:9200/_cat/plugins?v -u "admin:admin" --insecure
```
The response should look like this:
@ -246,4 +246,4 @@ The Performance Analyzer plugin is not available on Windows. All other OpenSearc
- [OpenSearch configuration]({{site.url}}{{site.baseurl}}/install-and-configure/configuration/)
- [OpenSearch plugin installation]({{site.url}}{{site.baseurl}}/opensearch/install/plugins/)
- [About the security plugin]({{site.url}}{{site.baseurl}}/security/index/)
- [About the security plugin]({{site.url}}{{site.baseurl}}/security/index/)