<div dir="ltr">Thank you, it works great</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 23 Feb 2024 at 18:27, Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>

  
    
  
  <div>
    <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 href="https://gdal.org/api/cpl.html#_CPPv412CPLHTTPFetchPKc12CSLConstList" target="_blank">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" target="_blank">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 href="http://user:password@wms.geobase.ca/wms-bin/cubeserv.cgi" target="_blank">http://user:password@wms.geobase.ca/wms-bin/cubeserv.cgi</a>"<br>
    </p>
    <p>Even<br>
    </p>
    <div>Le 23/02/2024 à 18:05, andy via
      gdal-dev a écrit :<br>
    </div>
    <blockquote type="cite">
      
      <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" target="_blank">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">
            <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">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></fieldset>
      <pre>_______________________________________________
gdal-dev mailing list
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
    </blockquote>
    <pre cols="72">-- 
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </div>

</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="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">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>