-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getAuthenticatedURL with HTTPS? #10
Comments
$url = $connector->getAuthenticatedURL('mybucket', 'path/to/file', 3600, true); The value The boolean value at the end makes it an https url. |
Excellent - thanks Ryan! |
Do you know if you can pass headers as well? So for instance if you want the user's browser to download the file vs. displaying it. Something like:
(But that doesn't seem to work for me) Update: I looked at the function code, and see that that's all the parameters provided. So doesn't appear to be a way to pass headers using this function. |
Is there a way for the getAuthenticatedURL to provide an HTTPS link to the file on S3 so the data is encrypted with SSL?
Like:
https://s3-us-east-1.amazonaws.com/documents.mybucket/file.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=blahblahblah
Instead of:
http://s3-us-east-1.amazonaws.com/documents.mybucket/file.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=blahblahblah
(The HTTPS link works, but the function returns a non-HTTPS version.)
(I suppose I could do a string replace and change it, but was curious if there's a built-in parameter for SSL.)
The text was updated successfully, but these errors were encountered: