<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.EpostStil18
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.EpostStil19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:992101630;
mso-list-type:hybrid;
mso-list-template-ids:208559652 68419601 68419609 68419611 68419599 68419609 68419611 68419599 68419609 68419611;}
@list l0:level1
{mso-level-text:"%1\)";
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="NO-BOK" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-GB">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">I have not tested this for version 2.x.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Here is what I have found out:<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><span lang="EN-GB"><span style="mso-list:Ignore">1)<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-GB">Calls to CPLHTTPFetch() from OGRWFSDataSource::HTTPFetch() is sent with UserPwd in papszOptions parameter.<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt;mso-list:l0 level1 lfo1"><![if !supportLists]><span lang="EN-GB"><span style="mso-list:Ignore">2)<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-GB">Calls to CPLHTTPFetch() from OGRGMLDataSource::Open() is sent without UserPwd in papszOptions parameter,
<br>
in fact the calls from the GML driver is always called with the parameter set to NULL .<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Even though I get these errors, I’m still able to read features from the service.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">But why are the calls in the GML driver, (on behalf of the WFS driver), made without UserPwd in papszOptions parameter?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">I have attached some output from the calls tack, so you can see which calls are causing this behaviour.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="NO-NYN" style="font-size:10.0pt;color:black;mso-fareast-language:NO-BOK">Best regards</span><span lang="NO-NYN" style="font-size:12.0pt;font-family:"Times New Roman",serif;mso-fareast-language:NO-BOK"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span lang="NO-NYN" style="color:black;mso-fareast-language:NO-BOK">Odd-Ragnar Lydersen</span></b><span lang="NO-NYN" style="mso-fareast-language:NO-BOK"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="NO-NYN" style="font-size:10.0pt;color:black;mso-fareast-language:NO-BOK">System Developer</span><span lang="NO-NYN" style="mso-fareast-language:NO-BOK"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span lang="NO-NYN" style="font-size:8.0pt;color:black;mso-fareast-language:NO-BOK"> </span></b><span lang="NO-NYN" style="mso-fareast-language:NO-BOK"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-GB" style="color:black;mso-fareast-language:NO-BOK">Powel AS</span></b><span lang="EN-GB" style="font-size:10.0pt;color:black;mso-fareast-language:NO-BOK">
</span><span lang="EN-GB" style="font-size:8.0pt;color:black;mso-fareast-language:NO-BOK">Storgata 27B, Pb 369, N-4349 Bryne, NORWAY</span><span lang="EN-GB" style="mso-fareast-language:NO-BOK"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:8.0pt;color:black;mso-fareast-language:NO-BOK">Email:
</span><span style="font-size:8.0pt;color:black;mso-fareast-language:NO-BOK"><a href="mailto:odd-ragnar.lydersen@powel.no"><span lang="EN-GB" style="color:blue">odd-ragnar.lydersen@powel.no</span></a></span><span style="font-size:8.0pt;color:black;mso-fareast-language:NO-BOK">
</span><span lang="EN-GB" style="mso-fareast-language:NO-BOK"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:NO-BOK"><a href="http://www.powel.com/" title="http://www.powel.com/"><span lang="EN-GB" style="font-size:8.0pt;color:blue">www.powel.no</span></a><o:p></o:p></span></p>
<p class="MsoNormal"><a href="http://www.powel.no/en"><span style="color:windowtext;mso-fareast-language:NO-BOK;text-decoration:none"><img border="0" width="89" height="26" style="width:.927in;height:.2708in" id="Picture_x0020_1" src="cid:image001.jpg@01D21990.02215690" alt="cid:image002.jpg@01CDD1F7.F470C190"></span></a><a href="https://www.facebook.com/pages/Powel/350917775700"><span style="color:windowtext;mso-fareast-language:NO-BOK;text-decoration:none"><img border="0" width="26" height="26" style="width:.2708in;height:.2708in" id="Picture_x0020_2" src="cid:image002.jpg@01D21990.02215690" alt="cid:image004.jpg@01CDD1F7.F470C190"></span></a><a href="http://www.linkedin.com/company/powel-as"><span style="color:windowtext;mso-fareast-language:NO-BOK;text-decoration:none"><img border="0" width="30" height="28" style="width:.3125in;height:.2916in" id="Picture_x0020_3" src="cid:image003.jpg@01D21990.02215690" alt="cid:image006.jpg@01CDD1F7.F470C190"></span></a><span style="mso-fareast-language:NO-BOK"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
</div>
</body>
</html>