Browse Source

[DOCS] add -i flag to more curl HEAD calls

javanna 10 years ago
parent
commit
88e506e58c

+ 3 - 3
docs/reference/indices/aliases.asciidoc

@@ -410,7 +410,7 @@ option as the get indices aliases api. Examples:
 
 [source,js]
 --------------------------------------------------
-curl -XHEAD 'localhost:9200/_alias/2013'
-curl -XHEAD 'localhost:9200/_alias/2013_01*'
-curl -XHEAD 'localhost:9200/users/_alias/*'
+curl -XHEAD -i 'localhost:9200/_alias/2013'
+curl -XHEAD -i 'localhost:9200/_alias/2013_01*'
+curl -XHEAD -i 'localhost:9200/users/_alias/*'
 --------------------------------------------------

+ 1 - 1
docs/reference/indices/indices-exists.asciidoc

@@ -5,7 +5,7 @@ Used to check if the index (indices) exists or not. For example:
 
 [source,js]
 --------------------------------------------------
-curl -XHEAD 'http://localhost:9200/twitter'
+curl -XHEAD -i 'http://localhost:9200/twitter'
 --------------------------------------------------
 
 The HTTP status code indicates if the index exists or not. A `404` means

+ 1 - 1
docs/reference/indices/templates.asciidoc

@@ -102,7 +102,7 @@ Used to check if the template exists or not. For example:
 
 [source,js]
 -----------------------------------------------
-curl -XHEAD localhost:9200/_template/template_1
+curl -XHEAD -i localhost:9200/_template/template_1
 -----------------------------------------------
 
 The HTTP status code indicates if the template with the given name