I getting RequestOpenFailed Opening of HTTP request failed when doing
a xmlrpc ServiceProxy call to a different host in Mozilla.
I've read about the cross-domain security issue and am bypassing it with
netscape.security.PrivilegeManager.enablePrivilege, for now.
This works from my server(localhost:9080/test.html) when the
url=http://jsolait.net/test.py.
But it fails when url=http://localhost:9080/echo.
The code is pretty simple and below.
Thanks for any help
try{
if (navigator.appName=="Netscape"){
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
}
var service = new xmlrpc.ServiceProxy(url, ['echo']);
var asXml = service.echo(msg);
result.value = asXml;
}catch(e){
result.value='Error occured '+printException(e);
}