Re: [gdal-dev] gdalinfo and WMS: is there a way to pass credentials via CLI?

2024-02-23 Thread andy via gdal-dev
Thank you, it works great On Fri, 23 Feb 2024 at 18:27, Even Rouault wrote: > Hi, > > I haven't tested but you should be able to use any of the env variable > listed for CPLHTTPFetch() at > https://gdal.org/api/cpl.html#_CPPv412CPLHTTPFetchPKc12CSLConstList > > so here GDAL_HTTP_USERPWD > > gdal

Re: [gdal-dev] gdalinfo and WMS: is there a way to pass credentials via CLI?

2024-02-23 Thread Even Rouault via gdal-dev
Hi, I haven't tested but you should be able to use any of the env variable listed for CPLHTTPFetch() at https://gdal.org/api/cpl.html#_CPPv412CPLHTTPFetchPKc12CSLConstList so here GDAL_HTTP_USERPWD gdalinfo "WMS:http://wms.geobase.ca/wms-bin/cubeserv.cgi"; --config GDAL_HTTP_USERPWD user:pa