I am not receiving a response from cURL:
- Add the
-vflag to receive verbose output:
curl -v ...
- Ensure to provide the
-H "Content-Type: application/json"
- Check the verbose output for the HTTP response code, e.g.
HTTP/1.1 415and research the response code to get further information.
I am trying to download a proof with cURL, but the file is empty:
- Make sure to specify
curl -v -o proof.pdf -H "Accept: application/octet-stream" YOUR_DOWNLOAD_URL
We use Cloudflare to protect the service from DDoS attacks, i.e., unwanted traffic is automatically filtered.
Cloudflare analyzes User-Agents. If you don't set a User-Agent in your cURL request, you likely get a Cloudflare error.
To resolve this issue, please set the
User-Agent in your request header, e.g.
curl -X GET https://api.originstamp.com/v4/timestamp/05c2422f44ddd24ba3f25848773a8fcb48435f8f966381da4732c40a7255780c\ -H "Content-Type: application/json"\ -H "User-Agent: Robins OriginStamp Test"\ -H "Authorization: XXXX-XXXX-XXXX-XXXX"
HTTP 4xx error
An HTTP 4xx error specifies issues at the client's end. E.g., a malformed request. Please refer to this page (opens new window) for more information.