[gdal-dev] GDAL vsicurl with query string

JDzialo John JDzialo at edrnet.com
Mon Aug 25 11:23:14 PDT 2014


Thanks.

I think an hour may be the limit but I set it for 10 hours so if it's allowed this link should be good until midnight tonight...

https://parcel-test.s3.amazonaws.com/test/key/value/string/object.jpg?Signature=7SPVoYI84N2YF5O0vhjvDv%2FU%2FOs%3D&Expires=1409026574&AWSAccessKeyId=AKIAJF3TTVKIEFQXGZ3Q

Thanks for the debug command I appreciate your help.  I tried the command and received the following error...

PS C:\Users\jdzialoex> gdalinfo --debug on --config CPL_CURL_VERBOSE YES "/vsicurl/https://parcel-test.s3.amazonaws.com/
test/key/value/string/object.jpg?Signature=7SPVoYI84N2YF5O0vhjvDv%2FU%2FOs%3D&Expires=1409026574&AWSAccessKeyId=AKIAJF3T
TVKIEFQXGZ3Q"
VSICURL: GetFileList(/vsicurl/https://parcel-test.s3.amazonaws.com/test/key/value/string)
* timeout on name lookup is not supported
* About to connect() to parcel-test.s3.amazonaws.com port 443 (#0)
*   Trying 54.231.2.217... * connected
* Connected to parcel-test.s3.amazonaws.com (54.231.2.217) port 443 (#0)
* libcurl is now using a weak random seed!
* SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
* Closing connection #0
* timeout on name lookup is not supported
* About to connect() to parcel-test.s3.amazonaws.com port 443 (#0)
*   Trying 54.231.2.217... * connected
* Connected to parcel-test.s3.amazonaws.com (54.231.2.217) port 443 (#0)
* SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
* Closing connection #0
VSICURL: GetFileSize(https://parcel-test.s3.amazonaws.com/test/key/value/string/object.jpg?Signature=7SPVoYI84N2YF5O0vhj
vDv%2FU%2FOs%3D&Expires=1409026574&AWSAccessKeyId=AKIAJF3TTVKIEFQXGZ3Q)=0  response_code=0
ERROR 4: `/vsicurl/https://parcel-test.s3.amazonaws.com/test/key/value/string/object.jpg?Signature=7SPVoYI84N2YF5O0vhjvD
v%2FU%2FOs%3D&Expires=1409026574&AWSAccessKeyId=AKIAJF3TTVKIEFQXGZ3Q' does not exist in the file system,
and is not recognised as a supported dataset name.

gdalinfo failed - unable to open '/vsicurl/https://parcel-test.s3.amazonaws.com/test/key/value/string/object.jpg?Signatu
re=7SPVoYI84N2YF5O0vhjvDv%2FU%2FOs%3D&Expires=1409026574&AWSAccessKeyId=AKIAJF3TTVKIEFQXGZ3Q'.




-----Original Message-----
From: Even Rouault [mailto:even.rouault at spatialys.com] 
Sent: Monday, August 25, 2014 2:13 PM
To: JDzialo John
Cc: gdal-dev at lists.osgeo.org
Subject: Re: [gdal-dev] GDAL vsicurl with query string

Le lundi 25 août 2014 18:26:47, JDzialo John a écrit :
> Hi Even
> 
> Yeah it was just a faked URL that was meant to show the URL format I 
> was trying to use to vsicurl a tif file from AWS S3.
> 
> OK so these URLs are time restricted and will terminate after an hour, 
> the maximum I ca set it at.
> 
> This is just our test bucket and test user.
> 
> If you can try this link...
> 
> https://parcel-test.s3.amazonaws.com/test/key/value/string/object.jpg?
> Signa 
> ture=zyN053V02Y41VSKA6Yc1%2Bx0fz%2BU%3D&Expires=1408987568&AWSAccessKe
> yId=A
> KIAJF3TTVKIEFQXGZ3Q
> 
> It will terminate around 1:30pm.

Just saw your message now after timeout experitation... If you could try setting up something with a longer timeout... Or you'll have to coordinate closely with someone.

Well, for some offline debugging, what is the output of :
gdalinfo --debug on --config CPL_CURL_VERBOSE YES /vsicurl/https://..... 

Even

--
Spatialys - Geospatial professional services http://www.spatialys.com


More information about the gdal-dev mailing list