What are correct headers for backup download
|
|
I couldn’t come up with the right headers to download a backup via API and would be glad for every hint. Thanks! I call the path /api/v1/projects/%s/backups/%s/download.tgz . |
|
|
Markus, You should not need to send any specific headers for the /download resource other than the ‘Accept’ header that would specify the format you would in the case of errors (i.e. XML or JSON). If the backup has completed, the server will ALWAYS just send the backup with a Content-Type of “application/x-gzip”. If it has not yet completed, then you will receive an error array containing a message to that effect. I hope that helps! |
