<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>I haven't tested but you should be able to use any of the env
variable listed for CPLHTTPFetch() at
<a class="moz-txt-link-freetext" href="https://gdal.org/api/cpl.html#_CPPv412CPLHTTPFetchPKc12CSLConstList">https://gdal.org/api/cpl.html#_CPPv412CPLHTTPFetchPKc12CSLConstList</a>
<br>
</p>
<p>so here GDAL_HTTP_USERPWD</p>
<p>gdalinfo "WMS:<a
href="http://wms.geobase.ca/wms-bin/cubeserv.cgi"
class="moz-txt-link-freetext">http://wms.geobase.ca/wms-bin/cubeserv.cgi</a>"
--config GDAL_HTTP_USERPWD user:password</p>
<p>And probably that just incorporating it in the URL should work:</p>
<p>gdalinfo
"WMS:<a class="moz-txt-link-freetext" href="http://user:password@wms.geobase.ca/wms-bin/cubeserv.cgi">http://user:password@wms.geobase.ca/wms-bin/cubeserv.cgi</a>"<br>
</p>
<p>Even<br>
</p>
<div class="moz-cite-prefix">Le 23/02/2024 à 18:05, andy via
gdal-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAHEdGZPgp8khM6DdYy1ARea43c_R8ddrYHtRV=0eFamZ7OooeA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi,
<div>is there a way to pass UserPwd parameter via a gdalinfo
command?</div>
<div>Is there a way to pass it, without creating an XML file?</div>
<div><br>
</div>
<div>Something like this </div>
<div><br>
</div>
<div>gdalinfo "WMS:<a
href="http://wms.geobase.ca/wms-bin/cubeserv.cgi"
moz-do-not-send="true" class="moz-txt-link-freetext">http://wms.geobase.ca/wms-bin/cubeserv.cgi</a>"
-UserPwd user:password</div>
<div><br>
</div>
<div>Thank you<br clear="all">
<div><br>
</div>
<span class="gmail_signature_prefix">-- </span><br>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr"><span
style="font-size:small">___________________</span><br>
</div>
<div dir="ltr"><span
style="font-size:small"><br>
</span></div>
<div dir="ltr">Andrea Borruso<br>
website: <a
href="https://medium.com/tantotanto" target="_blank"
moz-do-not-send="true"
class="moz-txt-link-freetext">https://medium.com/tantotanto</a><br>
38° 7' 48" N, 13° 21' 9" E,
EPSG:4326<br>
<span style="font-size:small">___________________</span><br>
<br>
"cercare e saper riconoscere chi e
cosa,<br>
in mezzo all’inferno, non è
inferno, <br>
e farlo durare, e dargli spazio"<br>
<br>
Italo Calvino<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>