[gdal-dev] vsicurl and HTTP error 403

Ivan Lucena ivan.lucena at outlook.com
Wed Apr 8 15:24:14 PDT 2020


Hi,

I am wondering if someone can help to point what I am doing wrong here.

This is data that I am trying to access:

$ gdalinfo /vsicurl/https://gimms.gsfc.nasa.gov/MODIS/std/GMOD09Q1/tif/NDVI/2019/249/GMOD09Q1.A2019249.08d.latlon.x33y07.6v1.NDVI.tif.gz
ERROR 11: HTTP response code: 403
gdalinfo failed - unable to open '/vsicurl/https://gimms.gsfc.nasa.gov/MODIS/std/GMOD09Q1/tif/NDVI/2019/249/GMOD09Q1.A2019249.08d.latlon.x33y07.6v1.NDVI.tif.gz'.

If the error 403 means permission issue, why is that I can download from a browser or using wget

$ wget https://gimms.gsfc.nasa.gov/MODIS/std/GMOD09Q1/tif/NDVI/2019/249/GMOD09Q1.A2019249.08d.latlon.x33y07.6v1.NDVI.tif.gz
$ gdalinfo /vsigzip//GMOD09Q1.A2019249.08d.latlon.x33y07.6v1.NDVI.tif.gz

That makes me thinking that I should concatenating the two drivers vsigzip and vsicurl, but that doesn't help probably because I still have the permission issue.

$ gdalinfo /vsigzip//vsicurl/https://gimms.gsfc.nasa.gov/MODIS/std/GMOD09Q1/tif/NDVI/2019/249/GMOD09Q1.A2019249.08d.latlon.x33y07.6v1.NDVI.tif.gz
ERROR 4: `/vsigzip//vsicurl/https://gimms.gsfc.nasa.gov/MODIS/std/GMOD09Q1/tif/NDVI/2019/249/GMOD09Q1.A2019249.08d.latlon.x33y07.6v1.NDVI.tif.gz' does not exist in the file system, and is not recognized as a supported dataset name.
gdalinfo failed - unable to open '/vsigzip//vsicurl/https://gimms.gsfc.nasa.gov/MODIS/std/GMOD09Q1/tif/NDVI/2019/249/GMOD09Q1.A2019249.08d.latlon.x33y07.6v1.NDVI.tif.gz'.

I am using GDAL 2.3.3 on Windows, GDAL 2.3.3 Linux and GDAL 2.4.4 on Mac.

Any suggestion?

Thanks,

Ivan






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200408/5b1141ff/attachment.html>


More information about the gdal-dev mailing list