[gdal-dev] OGR WFS from behind NTLMv2 proxy server

Even Rouault even.rouault at mines-paris.org
Mon Feb 18 15:02:13 PST 2013


Le mardi 19 février 2013 00:00:37, Even Rouault a écrit :
> Le lundi 18 février 2013 23:49:10, Jeremy Palmer a écrit :
> > >> Try setting GDAL_HTTP_PROXY=host:port and
> > >> GDAL_HTTP_PROXYUSERPWD=user:pass as environmenet variables /
> > >> configuration options.
> > 
> > Still can't get it to work. Returns:
> > 
> > ERROR 1: HTTP error code : 407
> > ERROR 1: Error returned by server : HTTP error code : 407 (0)
> > ERROR 1: HTTP error code : 407
> > ERROR 1: Error returned by server : HTTP error code : 407 (0)
> > FAILURE:
> > Unable to open datasource
> > `WFS:http://geoportal.doc.govt.nz/arcgis/services/Geop
> > ortalServices/DOC_Tracks/MapServer/WFSServer' with the following drivers.
> > 
> > Works when I connect via chrome on the same PC.
> 
> Perhaps you can try the following attached patch (based on trunk) and after
> rebuilding GDAL also set GDAL_HTTPAUTH=NTLM in addition to GDAL_HTTP_PROXY
> and GDAL_HTTP_PROXYUSERPWD  ?

Arf, the correct syntax is GDAL_HTTP_AUTH=NTLM


More information about the gdal-dev mailing list