curl: (6) Could not resolve host: google.com; Name or service not known

Issues were: IPV6 enabled Wrong DNS server Here is how I fixed it: IPV6 Disabling Open Terminal Type su and enter to log in as the super user Enter the root password Type cd /etc/modprobe.d/ to change directory to /etc/modprobe.d/ Type vi disableipv6.conf to create a new file there Press Esc + i to insert data to file Type install ipv6 /bin/true on the file to … Read more

cURL to show response headers after submiting a file

Use -i From the cURL manual Note also: The first will show headers, followed by body. The second will send a HEAD request so can’t be used in your example as you’re POSTing data. Edit The header output using -i is echoed to stdout, the same as the request body so directing the response into a PDF file … Read more