From ad34a05857294250e67a33c4eefdf80f0007a6ca Mon Sep 17 00:00:00 2001 From: javalover123 Date: Sat, 11 Mar 2023 05:36:57 +0800 Subject: [PATCH] Fix curl Unauthorized on windows (#3381) --- _install-and-configure/install-opensearch/windows.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_install-and-configure/install-opensearch/windows.md b/_install-and-configure/install-opensearch/windows.md index 24a0d5e1..83edf83e 100644 --- a/_install-and-configure/install-opensearch/windows.md +++ b/_install-and-configure/install-opensearch/windows.md @@ -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/) \ No newline at end of file +- [About the security plugin]({{site.url}}{{site.baseurl}}/security/index/)