This content has been marked as final. Show 11 replies
Is the host name you use exactly the same as the one in the page URL?
They must be the same as per String.equals().
For instance, using the DNS name in one and and the IP address in the other does not qualify as 'exactly the same'.
Edit: Although you posted in 'Signed applets', I assume your applet is not signed and this is ok if you connect back to the host from where the applet was downloaded, the way I described.
Edited by: baftos on Apr 12, 2011 11:10 AM
Yes, the URL's are exatly the same.
It has to be correct since some POST operations work.
To be sure I created one global static variable for this URL which I use. I even use the same class and method for all post operations.
I still dont understand why java behaves like this -- if its a security measure, it's not working for clients who use proxy
The facts are:
1. The error appears on java console and it is a java error
2. When the browser (and java applet) is set up to use a proxy everything works.
I apologize for posting here, I knew the section is for signed applets, but I didn't know where else to post and since these areas are quite close I assumed the people reading this have also an expertise to answer my question.
I do not want to sign an applet and all I need is to connect back to the server it was downloaded from.
EJP, your post doesn't make senceBut it does make sense
Why do you blame Java when it executes the same operation perfectly?
access denied (java.net.SocketPermission 188.8.131.52:80 connect,resolve)
Isn't exactly what I would call a perfect execution.
BTW, 184.108.40.206 is servers IP, not clients.
If you are suggestingNo I'm not ... I don't 'suggest' things: I would say so explicitly.
I did present the facts.
Especially when taking into account other facts.