Skip to content

Commit f1fddae

Browse files
authored
Merge pull request #19 from epecchioli-florence-consulting/importing-data-with-curl-elastic8
Updated importing-data-with-curl.md for Elasticsearch 8
2 parents 7ba0adf + 5630b97 commit f1fddae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Managing Documents/importing-data-with-curl.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ cd C:\Users\[your_username]\Desktop
1818
## Importing data into local cluster
1919

2020
```
21-
curl -H "Content-Type:application/x-ndjson" -XPOST http://localhost:9200/products/_bulk --data-binary "@products-bulk.json"
21+
curl --cacert [path_to_CA_certificate] -u elastic -H "Content-Type:application/x-ndjson" -XPOST https://localhost:9200/products/_bulk --data-binary "@products-bulk.json"
22+
23+
# Skipping the verification of the certificate (only for local development)
24+
curl --insecure -u elastic -H "Content-Type:application/x-ndjson" -XPOST https://localhost:9200/products/_bulk --data-binary "@products-bulk.json"
2225
```
2326

2427
## Importing data into Elastic Cloud

0 commit comments

Comments
 (0)