[gdal-dev] vsicurl and an issue with http 302 redirect in the middle of the file

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Wed May 5 13:04:44 PDT 2021


Hi,

Have a look at https://gis.stackexchange.com/questions/395867/opening-a-grib-from-the-web-with-gdal-in-python-using-vsicurl-throws-error-on-m. There gdalinfo fails with /vsicurl/ somewhere in the middle of the grib2 file when the server sends http 302 as a response for a range request. The file is OK as was tested by downloading it first totally with curl. Could it be that the http "moved permanently" at that stage makes /vsicurl/ to fail?

I made also a few tests and it seems that the error may happen in another http range, but it is always similar:
VSICURL: Got response_code=302
GRIB: ERROR: Ran out of file in Section 7

-Jukka Rahkonen-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210505/9a89c490/attachment.html>


More information about the gdal-dev mailing list