Skip to content

Getting 403 Forbidden when using S3 url #31

@khataev

Description

@khataev

I've noticed, that Amazon API returns 403 response when trying to request only headers:

curl "https:/..." --head            
HTTP/1.1 403 Forbidden
x-amz-request-id: 9A0D5596C066E400
x-amz-id-2: Cb1y8kEjyPKd3JzpaxV8cGAsXvA9tzlLaCy4l/HP1qBfaRMIR9Q/da0tnpHUfItbyH8P7WmokkI=
Content-Type: application/xml
Date: Tue, 23 Feb 2021 07:01:38 GMT
Server: AmazonS3

While, ordinary request works fine

 curl "https://..." --output file.docx
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 38010  100 38010    0     0   123k      0 --:--:-- --:--:-- --:--:--  123k

What is the reason for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions