[gdal-dev] debugging ogr/libcurl 302 redirect failure

snorris at hillcrestgeo.ca snorris at hillcrestgeo.ca
Tue Aug 27 14:37:04 PDT 2024


Hi list,

Using ogrinfo/ogr2ogr, I can't find the right config options to read data at this url: https://governmentofbc.maps.arcgis.com/sharing/rest/content/items/4bba119c2e9042d683cc9378fb1e836e/data 

Example command:
ogrinfo https://governmentofbc.maps.arcgis.com/sharing/rest/content/items/4bba119c2e9042d683cc9378fb1e836e/data \
  --config CPL_VSIL_CURL_USE_HEAD=NO \
  --config CPL_CURL_VERBOSE=YES \
  --debug ON

I've tried a few additional config options, but can't tell what the problem is - the output from CURL_VERBOSE includes a GET to the appropriate new url, and it presumably uses the token without issue because it reports on the correct attachment:

CURL_INFO_HEADER_IN: Content-Disposition: attachment; filename="transportation.gdb.zip"; size=307145

I can download without issue using `curl --location-trusted` but would prefer to use ogr directly.

thanks!

Simon



More information about the gdal-dev mailing list