script to download file from Amazon S3 bucket

后端 未结 5 1483
清歌不尽
清歌不尽 2021-02-08 00:06

Trying to write script to download file from Amazon S3 bucket.

Having trouble with the example on the cURL site. The script below produces:

The re

5条回答
  •  广开言路
    2021-02-08 00:26

    Avoid signing the request yourself, a lot can go wrong or be hard to do. For example, you should check that the date is set to GMT or use x-amz-date headers.

    Another approach is to use the AWS Command Line Interface and so use $ aws s3 cp or $ aws s3 sync.

提交回复
热议问题