Hi, I'm having trouble querying features from a WMS server that requires a UID and password. I'm using UK Ordnance Survey's OpenSpace, which is built on OpenLayers 2.8.
OpenLayers.Layer.WMS works OK and I can see the data OK using a URL of the form http://UID:[email protected] But using the same URL with OpenLayers.Control.WMSGetFeatureInfo I get problems with the query. I'm a bit unsure what to put into proxy.cgi. I have tried both (1) UID:[email protected] and (2) www.xxx.com but both produce errors attached below. (For security I've changed some real values in the data below - e.g. myisp for actual IP etc.). Anybody any ideas how to solve this problem? Cheers, Peter URL: http://UID:[email protected]/OGC/OGCInterface Errors from (1) proxy.cgi has UID:[email protected] Some unexpected error occurred. Error text was: nonnumeric port: '[email protected]' Errors from (2) proxy.cgi has www.xxx.com This proxy does not allow you to access that location (UID:[email protected]). {'HTTP_COOKIE': '__utma=269788912.1267851037.1310233790.1334770471.1335197005.120; __utmz=269788912.1334770471.119.78.utmcsr=bing|utmccn=(organic)|utmcmd=organic|utmctr=bt21cn; __utmc=269788912', 'SERVER_SOFTWARE': 'Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635', 'SCRIPT_NAME': '/gpx/proxy.cgi', 'SERVER_SIGNATURE': ' Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at myserver.co.uk Port 80 \n', 'REQUEST_METHOD': 'GET', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': 'url=http%3A%2F%2FUID%3Apassword%40www.xxx.com%2FOGC%2FOGCInterface%3Fservice%3DWMS%26version%3D1.1.0%26request %3DGetFeatureInfo%26layers%3Deainspire2011-wms-drn_inspire-wm%26query_layers%3Deainspire2011-wms-drn_inspire-wm%26styles%3D%26bbox %3D546742.276473%252C232929.256534%252C559162.276473%252C241299.256534%26srs%3DEPSG%253A27700%26feature_count%3D10%26x%3D859%26y %3D261%26height%3D837%26width%3D1242%26info_format%3Dtext%252Fhtml', 'PATH': '/usr/local/bin:/usr/bin:/bin', 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_REFERER': 'http://myserver.co.uk/gpx/rivers.html', 'SERVER_NAME': 'myserver.co.uk', 'REMOTE_ADDR': '109.170.137.226', 'SERVER_PORT': '80', 'SERVER_ADDR': '84.234.17.171', 'DOCUMENT_ROOT': '/home/myid/public_html', 'SCRIPT_FILENAME': '/home/myid/public_html/gpx/proxy.cgi', 'SERVER_ADMIN': '[email protected]', 'HTTP_HOST': 'myserver.co.uk', 'REQUEST_URI': '/gpx/proxy.cgi?url=http%3A%2F%2FUID%3Apassword%40www.xxx.com%2FOGC%2FOGCInterface %3Fservice%3DWMS%26version%3D1.1.0%26request%3DGetFeatureInfo%26layers%3Deainspire2011-wms-drn_inspire-wm%26query_layers %3Deainspire2011-wms-drn_inspire-wm%26styles%3D%26bbox%3D546742.276473%252C232929.256534%252C559162.276473%252C241299.256534 %26srs%3DEPSG%253A27700%26feature_count%3D10%26x%3D859%26y%3D261%26height%3D837%26width%3D1242%26info_format%3Dtext%252Fhtml', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'GATEWAY_INTERFACE': 'CGI/1.1', 'REMOTE_PORT': '49074', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate'} -- View this message in context: http://osgeo-org.1560.n6.nabble.com/WMSGetFeatureInfo-proxy-cgi-UID-and-Password-How-tp4955910.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
