When I'm using the WFS driver for version 1.0.0, or version 1.1.0 then I get some error messages back from GDAL, when the service is password protected. I have not tested this for version 2.x.
Here is what I have found out: 1) Calls to CPLHTTPFetch() from OGRWFSDataSource::HTTPFetch() is sent with UserPwd in papszOptions parameter. 2) Calls to CPLHTTPFetch() from OGRGMLDataSource::Open() is sent without UserPwd in papszOptions parameter, in fact the calls from the GML driver is always called with the parameter set to NULL . Even though I get these errors, I'm still able to read features from the service. But why are the calls in the GML driver, (on behalf of the WFS driver), made without UserPwd in papszOptions parameter? I have attached some output from the calls tack, so you can see which calls are causing this behaviour. Best regards Odd-Ragnar Lydersen System Developer Powel AS Storgata 27B, Pb 369, N-4349 Bryne, NORWAY Email: odd-ragnar.lyder...@powel.no<mailto:odd-ragnar.lyder...@powel.no> www.powel.no<http://www.powel.com/> [cid:image002.jpg@01CDD1F7.F470C190]<http://www.powel.no/en>[cid:image004.jpg@01CDD1F7.F470C190]<https://www.facebook.com/pages/Powel/350917775700>[cid:image006.jpg@01CDD1F7.F470C190]<http://www.linkedin.com/company/powel-as>
Call stack for calls without uerpasswd: 4> gdal211.dll!CPLHTTPFetch(const char * pszURL, char * * papszOptions) Line 322 C++ gdal211.dll!OGRGMLDataSource::Open(GDALOpenInfo * poOpenInfo) Line 943 C++ gdal211.dll!OGRGMLDriverOpen(GDALOpenInfo * poOpenInfo) Line 110 C++ gdal211.dll!GDALOpenEx(const char * pszFilename, unsigned int nOpenFlags, const char * const * papszAllowedDrivers, const char * const * papszOpenOptions, const char * const * papszSiblingFiles) Line 2762 C++ gdal211.dll!OGRWFSLayer::FetchGetFeature(int nRequestMaxFeatures) Line 1003 C++ gdal211.dll!OGRWFSLayer::BuildLayerDefn(OGRFeatureDefn * poSrcFDefn) Line 1083 C++ gdal211.dll!OGRWFSLayer::GetLayerDefn() Line 1063 C++ gdal211.dll!OGRLayer::GetSpatialRef() Line 1034 C++ > gdal211.dll!CPLHTTPFetch(const char * pszURL, char * * papszOptions) > Line 322 C++ gdal211.dll!OGRGMLDataSource::Open(GDALOpenInfo * poOpenInfo) Line 943 C++ gdal211.dll!OGRGMLDriverOpen(GDALOpenInfo * poOpenInfo) Line 110 C++ gdal211.dll!GDALOpenEx(const char * pszFilename, unsigned int nOpenFlags, const char * const * papszAllowedDrivers, const char * const * papszOpenOptions, const char * const * papszSiblingFiles) Line 2762 C++ gdal211.dll!OGRWFSLayer::FetchGetFeature(int nRequestMaxFeatures) Line 1003 C++ gdal211.dll!OGRWFSLayer::GetNextFeature() Line 1193 C++ Call stack for successful calls with userpasswd: 1> gdal211.dll!CPLHTTPFetch(const char * pszURL, char * * papszOptions) Line 324 C++ gdal211.dll!OGRWFSDataSource::HTTPFetch(const char * pszURL, char * * papszOptions) Line 2058 C++ gdal211.dll!OGRWFSDataSource::LoadMultipleLayerDefn(const char * pszLayerName, char * pszNS, char * pszNSVal) Line 1712 C++ gdal211.dll!OGRWFSLayer::GetLayerDefn() Line 1059 C++ gdal211.dll!OGRLayer::GetSpatialRef() Line 1034 C++ 2> gdal211.dll!CPLHTTPFetch(const char * pszURL, char * * papszOptions) Line 324 C++ gdal211.dll!OGRWFSDataSource::HTTPFetch(const char * pszURL, char * * papszOptions) Line 2058 C++ gdal211.dll!OGRWFSLayer::DescribeFeatureType() Line 230 C++ gdal211.dll!OGRWFSLayer::BuildLayerDefn(OGRFeatureDefn * poSrcFDefn) Line 1080 C++ gdal211.dll!OGRWFSLayer::GetLayerDefn() Line 1063 C++ gdal211.dll!OGRLayer::GetSpatialRef() Line 1034 C++ 3> gdal211.dll!CPLHTTPFetch(const char * pszURL, char * * papszOptions) Line 324 C++ gdal211.dll!OGRWFSDataSource::HTTPFetch(const char * pszURL, char * * papszOptions) Line 2058 C++ gdal211.dll!OGRWFSLayer::FetchGetFeature(int nRequestMaxFeatures) Line 811 C++ gdal211.dll!OGRWFSLayer::BuildLayerDefn(OGRFeatureDefn * poSrcFDefn) Line 1083 C++ gdal211.dll!OGRWFSLayer::GetLayerDefn() Line 1063 C++ gdal211.dll!OGRLayer::GetSpatialRef() Line 1034 C++
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev