Having trouble successfully parsing the data GeoServer sends me after a request is made with Basic Authentication configured in the web.xml file
I've added the Basic Authentication to the web.xml file with a security-constraint, auth-constraint,login-config and security-role then when I try to send a request GeoServer is telling me in the log file everything is ok with the http code 200 But then when I try parsing the XML data GeoServer sends my application It tries to connect to GeoServer I guess because of the online resource tags in the XML document and this fails since it doesn't have the username and password I then get an entry in the log file that ends with http 401 952 In my client application that made the request I get the message Server returned HTTP response code: 401 for URL: http://192.168.1.6:8080/geoserver/schemas/wms/1.1.1/WMS_MS_Capabilities.dtd Is there another piece to the puzzle that I'm missing? I've also noticed a difference in the data GeoServer gives me with and without Basic Authentication setup WIthout authentication the beginning of the XML data looks like this <?xml version="1.0" encoding="UTF-8" standalone="no"?><WMT_MS_Capabilities updateSequence="130" version="1.1.1"> <Service> With authentication the XML data looks like this <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE WMT_MS_Capabilities SYSTEM "http://192.168.1.6:8080/geoserver/schemas/wms/1.1.1/WMS_MS_Capabilities.dtd"> <WMT_MS_Capabilities version="1.1.1" updateSequence="57"> Anybody know why it's different and if it matters for parsing? -- View this message in context: http://old.nabble.com/GeoServer-returned-HTTP-response-code%3A-401-tp30468673p30468673.html Sent from the GeoServer - User mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
