I want to open an HttpURLConnection via proxy on google app engine.
I'm using java.

I've tried using the following methods.

Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("xxxxxx", 
> 3128));  
> HttpURLConnection conn = (HttpURLConnection) url.openConnection(proxy);  
>
    

However it shows exception

 java.security.AccessControlException: access denied 
> ("java.net.SocketPermission" "xxxx:3128" "connect,resolve")
> at 
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:375)
> at 
> java.security.AccessController.checkPermission(AccessController.java:565)
> at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
>
   

And I tried another method

System.setProperty("http.proxyHost", "xxxxx");
> System.setProperty("http.proxyPort", "3128");
>
    

And it doesn't work at all.

I'm wonder is there a way can let me open an HttpURLConnection via proxy on 
google app engine using java?

Thank you!

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/4c572dd2-8c34-4a19-8398-a7db7ed9b65d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to