SciLor's Open Source Forums

Page 1 of 1

Author:  vato [ Thu Jan 19, 2012 11:03 pm ]
Post subject:  Proxy

Hi Scilor,
like you know Grooveshark has banned the users in Germany. Your Tor solution works good.
It would be great when we have a similar solution in Java. I looked at the ban and it seems like they only check on connection. When connected its possible to search and stream with a german ip. Would it be possible to set a proxy through which the connection is established?
Should be easy:
SocketAddress addr = new InetSocketAddress("", 80);
Proxy proxy = new Proxy(Proxy.Type.HTTP, addr);
URL url=new URL("");
URLConnection conn = url.openConnection(proxy);
InputStream is=conn.getInputStream();

Thanks and Greetings

Author:  SciLor [ Sun Jan 22, 2012 2:22 am ]
Post subject:  Re: Proxy

Thank you, already done without a proxy :P

Author:  vato [ Mon Jan 23, 2012 11:57 am ]
Post subject:  Re: Proxy

Awesome. Thanks :)

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group