I think you have no proble in your code .
maybe some thing such as a firewall at server side has blocked
"http access" from the client requsting "oPen()" method.
the "permission denied" message confirms this idea.
make sure there is no mechanism designed at the "server" to filter
request types such as "http" or others.