<div dir="ltr">Dear GDAL colleagues,<div><br></div><div>do you have any idea why the first method fails:<div><i><b>set GDAL_HTTP_USERPWD="user:pass"</b></i></div><div><i>gdal_translate -srcwin 0 0 1073696614, 1073741824 -outsize 512 512 "WMS:<a href="https://maps.lantmateriet.se/topowebb/wms/v1?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=topowebbkartan&SRS=epsg:3006&BBOX=-1.19998e+06,4.69998e+06,2.59988e+06,8.5e+06">https://maps.lantmateriet.se/topowebb/wms/v1?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=topowebbkartan&SRS=epsg:3006&BBOX=-1.19998e+06,4.69998e+06,2.59988e+06,8.5e+06</a>" tile1.png</i></div><div><br></div><div>but the second works?</div><div><i>gdal_translate -srcwin 0 0 1073696614, 1073741824 -outsize 512 512 "WMS:<a href="https://maps.lantmateriet.se/topowebb/wms/v1?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=topowebbkartan&SRS=epsg:3006&BBOX=-1.19998e+06,4.69998e+06,2.59988e+06,8.5e+06">https://maps.lantmateriet.se/topowebb/wms/v1?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=topowebbkartan&SRS=epsg:3006&BBOX=-1.19998e+06,4.69998e+06,2.59988e+06,8.5e+06</a>" tile1.png <b>--config GDAL_HTTP_USERPWD "user:pass"</b></i><br></div></div><div><br></div><div>(windows, GDAL 3.9.2, anaconda prompt)</div><div><br></div><div>Regards,</div><div>MichaƂ Kowalczuk</div></div>