title: Curl request .curl: (6) Could not resolve host:
body: <p>I am using curl to download a file from an online web page but it gives this error:</p>
  
  <blockquote>
    <p>curl: (6) Could not resolve host: jsonplaceholder.typicode.com.</p>
  </blockquote>
  
  <p>However, it works fine when I run on localhost xampp.</p>