You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jclouds.apache.org by John D'Emic <jo...@gmail.com> on 2013/11/24 17:44:24 UTC
Using S3's Alternate Date Header
Hey All,
I'm trying to use the BlobRequestSigner to get a temporary URL + headers I
can return to a Javascript client. Here's the code I'm using:
HttpRequest request =
context.getSigner().signGetBlob("foo", filename);
This is working fine but I'm running into an issue where Chrome / Safari
can't open the resulting link because I can't set the Date header. The
fix, apparently, is to use the x-amz-date header instead of the Date
header. This constant is exposed in S3Constants as "ALTERNATE_DATE".
I'm having trouble now, however, figuring out how to have jClouds sign the
URL with this header as opposed to the default Date.
Any ideas how I can accomplish this?