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