[gdal-dev] GDAL vsicurl with query string
Even Rouault
even.rouault at spatialys.com
Fri Aug 22 15:38:55 PDT 2014
Le samedi 23 août 2014 00:13:21, JDzialo John a écrit :
> Hi All,
>
> This is my first post so forgive my noobiness...
>
> We are running a cropping tool that used to access data from a local hard
> drive and crop images.
>
> Now we want to use s3 as our storage in aws and want to access files
> through http requests. Great! Enter vsicurl.
>
> So when we open our s3 bucket to the world we can easily access our tif
> images from s3 with a straight url. For example...
>
> https://test-bucket.s3.amazonaws.com/test/key/value/string/object.tif
>
> This works well using the gdalinfo vsicurl cmd...
>
> gdalinfo
> /vsicurl/https://test-bucket.s3.amazonaws.com/test/key/value/string/object
> .tif
>
> However in s3 it is not secure to allow access to everyone on the internet
> and would rather use a presigned URL that uses a query string to
> authenticate access to the object.
>
> When sending a request with a query string vsicurl and gdal appear to
> breakdown and I'm not sure why.
>
> gdalinfo
> /vsicurl/https://test-bucket.s3.amazonaws.com/test/key/value/string/object
> .tif?Signature=sdlfkj88345r9&Expires=12300000&AWSAccessKeyID=AKIALKSDJFOILI
> KJFVOSIDF
I tried the URL in a browser and got a AccessDenied. Was it supposed to work
or something faked to just give a sense of the kind of URL ? A working example
would be helpful.
>
> Fails saying it's unable to open the file.
>
> Is there a specific way to pass the query string to the VSIL API like when
> using curl with the -d switch? Any way to run vsicurl with a query string
> or something I'm missing?
>
> Thanks for any advice you can throw my way!
>
>
>
> John Dzialo | Linux System Administrator
> Direct 203.783.8163 | Main 800.352.0050
>
> Environmental Data Resources, Inc.
> 440 Wheelers Farms Road, Milford, CT 06461
> www.edrnet.com<http://www.edrnet.com/> |
> commonground.edrnet.com<http://commonground.edrnet.com/>
>
> [Description: Description: Description: Description: Description:
> EDR_logo4color_EDR_only_80px2]
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the gdal-dev
mailing list