Open an image by configuraing HTTP_HEADERS #3333
Unanswered
robertm-cnes
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm trying to open a ZIP image available through a X-API-Key authentification parameter.
I can download this image with this curl :
So, I try to add a GDAL_HTTP_HEADERS in a RasterIo Env :
I also tried :
with hdr.txt just filledline with this line
But I got this error with rasterio=1.4.3:
RasterioIOError: '/vsizip/vsicurl/https://geodes-portal.cnes.fr/api/download/URN:FEATURE:DATA:gdh:081a47bd-3c63-3e3c-86e0-445a27dab418:V1/files/a6e7297d453338ef5e8ebef3c16cff99' does not exist in the file system, and is not recognized as a supported dataset name.
Do you have an idea how to pass X-API-Key in the header of the request sent by rasterio?
Beta Was this translation helpful? Give feedback.
All reactions