download document's blob with REST API using cURL