title: Curl "(6) Could not resolve host: http"
body: <p>I am trying to run this command</p>
  
  <pre><code>curl -XPUT -H "Content-Type: application/json" https://localhost:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'
  </code></pre>
  
  <p>But this results in this error </p>
  
  <pre><code>curl: (6) Could not resolve host: http
  curl: (3) unmatched close brace/bracket in URL position 5:
  null}'
  </code></pre>
  
  <p>I got this command from here </p>
  
  <p><a href="https://stackoverflow.com/a/50609418/3259896">https://stackoverflow.com/a/50609418/3259896</a></p>
  
  <p>I'm am not yet very familiar with curl nor elasticseach, so I'm not sure how to pinpoint the error</p>
  
  <p>If it makes a difference, I am using Windows. </p>
  
  <p>I also tried </p>
  
  <pre><code>$ curl -X PUT -H "Content-Type: application/json" https://localhost:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'
  </code></pre>
  
  <p>Edit2:</p>
  
  <p>I tried </p>
  
  <p><code>curl -XPUT -H "Content-Type: application/json" http://localhost:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'</code></p>
  
  <p>But now get this error</p>
  
  <p><code>{"error":{"root_cause":[{"type":"json_parse_exception","reason":"Unexpected character (''' (code 39)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@446f2dd5; line: 1, column: 2]"}],"type":"json_parse_exception","reason":"Unexpected character (''' (code 39)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@446f2dd5; line: 1, column: 2]"},"status":400}curl: (3) unmatched close brace/bracket in URL position 5:
  null}'
      ^</code></p>
  
  <p>I then tried</p>
  
  <p><code>curl -XPUT -H "Content-Type: application/json" http://localhost:9200/_all/_settings -d "{"index.blocks.read_only_allow_delete": null}"</code></p>
  
  <p>And I got </p>
  
  <p><code>{"error":{"root_cause":[{"type":"json_parse_exception","reason":"Unexpected character ('i' (code 105)): was expecting double-quote to start field name\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@696b36d3; line: 1, column: 3]"}],"type":"json_parse_exception","reason":"Unexpected character ('i' (code 105)): was expecting double-quote to start field name\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@696b36d3; line: 1, column: 3]"},"status":400}</code></p>