Hi all,<br>I want to get WMSGetCapabilites from server. The URL is <a href="http://labs.metacarta.com/wms/vmap0?request=GetCapabilities&amp;service=WMS">http://labs.metacarta.com/wms/vmap0?request=GetCapabilities&amp;service=WMS</a> and works fine.<br>
<br>But when I &quot;execute&quot; the next code the request never ends or returns me a empty response.<br><br>Anybody can help me clarifiying me how to get wms capabilities and later get the available layer names?<br><br>
Thanks in advance.<br><br>
    
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        
        

    
        &lt;html&gt;<br>    &lt;head&gt;<br>        &lt;title&gt;&lt;/title&gt;<br>        &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt;<br>        &lt;script type=&quot;text/javascript&quot; src=&#39;./js/ol/OpenLayers.js&#39;&gt;&lt;/script&gt;<br>
        &lt;script type=&quot;text/javascript&quot;&gt;<br>            request = OpenLayers.Request.GET({<br>                url: &quot;<a href="http://labs.metacarta.com/wms/vmap0?request=GetCapabilities&amp;service=WMS">http://labs.metacarta.com/wms/vmap0?request=GetCapabilities&amp;service=WMS</a>&quot;,<br>
                success: function(request){<br>                    alert(request.responseText);<br>                },<br>                failure: function(request){<br>                    alert(&#39;BOOOOOO!&#39;);<br>                }<br>
<br>            });<br>        &lt;/script&gt;<br><br>    &lt;/head&gt;<br>    &lt;body&gt;<br>        the body content<br>    &lt;/body&gt;<br>&lt;/html&gt;<br><br><br clear="all"><br>-- <br>|-----------------------------------------------------------<br>
| <a href="http://www.astracanada.net">http://www.astracanada.net</a><br>| <a href="http://acuriousanimal.orggeo.net">http://acuriousanimal.orggeo.net</a><br>|-----------------------------------------------------------<br>
| <a href="http://acuriousanimal.blogspot.com">http://acuriousanimal.blogspot.com</a><br>| <a href="http://theballoonproject.blogspot.com">http://theballoonproject.blogspot.com</a><br>|-----------------------------------------------------------<br>
|  _      __            <br>| /_|    (  _  _/&#39;_ _   <br>|(  |.  __)(//)//(/(/() <br>|                   _/    <br>|-----------------------------------------------------------<br>