# Importing data with cURL error. Newb here

**URL:** https://discuss.elastic.co/t/importing-data-with-curl-error-newb-here/131381
**Category:** Elasticsearch
**Created:** [May 11, 2018, 3:04am UTC](https://discuss.elastic.co/t/importing-data-with-curl-error-newb-here/131381 "2018-05-11T03:04:55Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![mjunaidmuzammil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mjunaidmuzammil/32/56910_2.png) [@mjunaidmuzammil](https://discuss.elastic.co/u/mjunaidmuzammil)
#### Post date: [May 11, 2018, 5:50am UTC](https://discuss.elastic.co/t/importing-data-with-curl-error-newb-here/131381/2 "2018-05-11T05:50:15Z")

</div>

Hi,

I believe you are using X-pack. You haven't provided authentication credentials to curl query. Please add those in the following format `-u <username>:<password>` to your curl request.

A similar thread to your can be found here.

> [@Elaticsearch failed to start after installing x-pack](https://discuss.elastic.co/t/elaticsearch-failed-to-start-after-installing-x-pack/74807/10):
>
> elasticpassword is not the right password. I told you already. Please read [https://www.elastic.co/guide/en/x-pack/current/security-getting-started.html](https://www.elastic.co/guide/en/x-pack/current/security-getting-started.html)

Hope this helps you out.

---

_[View the full topic](https://discuss.elastic.co/t/importing-data-with-curl-error-newb-here/131381)._
