Pre-signing Amazon S3 urls for both head and get verbs

前端 未结 3 1829
我寻月下人不归
我寻月下人不归 2021-02-01 04:25

I\'m hosting files on Amazon S3 that I want to make accessible using pre-signed urls.

For simple GET requests this works perfectly. There are some clients however that

3条回答
  •  囚心锁ツ
    2021-02-01 05:02

    You can also simulate the HEAD behavior with GET if you specify Range header for first byte only. The difference will be that you receive 206 instead of 200 code. Secondly full size will be in Content-Range header.

    curl -r 0-0

提交回复
热议问题