<div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>I'm trying to solve a strange issue from a QGIS python test in master:<br><br>If I use "localhost" in the url, this times out:<br>assert QgsVectorLayer("version='auto' table='' url='<a href="http://localhost/cgi-bin/qgis_mapserv.fcgi/?map=/home/dev/QGIS/tests/testdata/qgis_server/test_project.qgs">http://localhost/cgi-bin/qgis_mapserv.fcgi/?map=/home/dev/QGIS/tests/testdata/qgis_server/test_project.qgs</a>' typename='testlayer_èé' srsname='EPSG:4326'", 'wfs', 'WFS').isValid()<br><br></div><div>- If I point it to 127.0.0.1 it works normally.<br>- Both localhost and 127.0.0.1 work as expected from a web browser or for curl/wget<br></div><div>- Using another server different from qgis shows the same behaviour (hence it does not depend on qgis server but only on the hostname)<br></div><div>- The same Python code works fine if run from within QGIS master<br></div><div>- I have nothing strange in my /etc/hosts<br></div><div>- This does not depend on ctest: runnig the test directly from python shows the same problem<br></div><div>- WMS is working fine with both localhost and 127.0.0.1, so far only WFS shows this problem<br></div><div><br><br></div>Env:<br></div>- ubuntu xenial<br></div>- Qt 5.5.1<br><br></div>Any idea?<br clear="all"><div><div><div><div><div><div><br>-- <br><div class="gmail_signature">Alessandro Pasotti<br>w3:   <a href="http://www.itopen.it" target="_blank">www.itopen.it</a></div>
</div></div></div></div></div></div></div>