# Curl: (52) Empty reply from server When trying to restart cluster ( given user/password )

**URL:** <https://discuss.elastic.co/t/curl-52-empty-reply-from-server-when-trying-to-restart-cluster-given-user-password/260717>\
**Category:** Elasticsearch\
**Created:** [January 11, 2021, 12:19pm UTC](https://discuss.elastic.co/t/curl-52-empty-reply-from-server-when-trying-to-restart-cluster-given-user-password/260717 "2021-01-11T12:19:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![umen](https://avatars.discourse-cdn.com/v4/letter/u/ec9cab/32.png) [@umen](https://discuss.elastic.co/u/umen)\
**Post date:** [January 11, 2021, 12:19pm UTC](https://discuss.elastic.co/t/curl-52-empty-reply-from-server-when-trying-to-restart-cluster-given-user-password/260717/1 "2021-01-11T12:19:22Z")

</div>

i try to restart the cluster with the put command as stated in the docs:

> **[Full-cluster restart and rolling restart | Elasticsearch Reference \[7.10\] |...](https://www.elastic.co/guide/en/elasticsearch/reference/current/restart-cluster.html)**

```auto
curl -u "elastic:xxxxxxxxx" -k -X PUT "localhost:9200/_cluster/settings?pretty" -H 'Content-Type: application/json' -d'
{
  "persistent": {
    "cluster.routing.allocation.enable": "primaries"
  }
}
'

```

still I'm getting :

```auto
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 80 0 0 100 80 0 83 --:--:-- --:--:-- --:--:-- 83
curl: (52) Empty reply from server

```

it does work fine if i invoke :

```auto
curl -u "elastic:xxxxxxxxx" -k "https://localhost:9200" 

```

what I'm doing wrong here ?  
Thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 8, 2021, 12:19pm UTC](https://discuss.elastic.co/t/curl-52-empty-reply-from-server-when-trying-to-restart-cluster-given-user-password/260717/2 "2021-02-08T12:19:23Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
