java - How to open an HttpURLConnection via proxy on google app engine? -


I want a HttpURLConnection open via proxy on Google App Engine. I am using Java

I have the following methods.

  proxy = new Proxy (Proxy.Type.HTTP, New InetSocketAddress ( "xxxxxx" is tried using, 3128)); HttpURLConnection conn = (HttpURLConnection) url.openConnection (Proxy);  

However, this exception

  java.security.AccessControlException shows: denied access ( "java.net.SocketPermission" "xxxx: 3128" "do not connect, the solution") on java.security.AccessControlContext.checkPermission (AccessControlContext.java:375) java.security.AccessController.checkPermission (AccessController.java:565) on java.lang.SecurityManager.checkPermission (SecurityManager.java 549)   

and I tried another method of

  System.setProperty ( "http.proxyHost", "xxxxx"); System.setProperty ("http.proxy port", "3128");  

And it does not work at all.

  java.lang.UnsupportedOperationException: When I run GAE with the proxy using the personal computer (not deployed to the cloud), it shows the Google App Engine Proxy Does not support Com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler.openConnection (URLFetchServiceStreamHandler.java:54) on com.google.appengine.tools.development.LocalURLFetchServiceStreamHandler.openConnection (local URLFetchServiceStreamHandler.java:77) .openConnection (unknown source java.net.URL)  

I wonder whether Google App e via a method that I Java Do not give up a Actiteepiarel connection via proxy?

Thank you!


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -