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

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


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  ?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130219/a4f37fcb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vsilcurl_httpauth.patch
Type: text/x-patch
Size: 3128 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130219/a4f37fcb/attachment.bin>


More information about the gdal-dev mailing list