[gdal-dev] /vsicurl/ and 3XX response code

Even Rouault even.rouault at spatialys.com
Wed Mar 11 10:00:51 PDT 2020


On mercredi 11 mars 2020 09:53:55 CET aborruso wrote:
> Hi Even ,
> 
> 
> Even Rouault-2 wrote
> 
> > No, this is an implementation detail. You'd have to use the curl or other
> > HTTP
> > API for that.
> 
> today a lot of datasets, especially structured text data, are hosted in
> portals that reply with "HTTP/1.1 301 Moved Permanently".
> A classic example are the many and preciuous CSV and JSON files that you
> have in github gist.
> 
> It would be great to have as feature the option to follow the link (as in
> curl via "-L" option), both using the gdal/ogr /vsicurl/ via command line
> and via the definition of a VRT – GDAL Virtual Format XML file.

/vsicurl/ should automatically follow links. This is even tested in
https://github.com/OSGeo/gdal/blob/master/autotest/gcore/vsicurl.py#L230

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


More information about the gdal-dev mailing list