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. However, this exception and I tried another method of And it does not work at all. I wonder whether Google App e via a method that I Java Do not give up a Actiteepiarel connection via proxy? Thank you!
proxy = new Proxy (Proxy.Type.HTTP, New InetSocketAddress ( "xxxxxx" is tried using, 3128)); HttpURLConnection conn = (HttpURLConnection) url.openConnection (Proxy);
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)
System.setProperty ( "http.proxyHost", "xxxxx"); System.setProperty ("http.proxy port", "3128");
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)
Comments
Post a Comment