Open GoogleCodeExporter opened 9 years ago
Seconded.
However, it looks like you can subclass simplehttploader as a workaround and
use ReCaptchaImpl.setHttpLoader.
Original comment by luke.biddell
on 3 Aug 2011 at 4:09
Hi,
Try this :
reCaptcha.setHttpLoader(new
SimpleProxyHttpLoader(proxyHost,Integer.parseInt(proxyPort)));
}
Original comment by d.bo...@gmail.com
on 2 Nov 2011 at 1:37
[deleted comment]
It will be easier to sub-class with the following change to SimpleHttpLoader
Original comment by ishai...@gmail.com
on 27 Oct 2012 at 1:25
Attachments:
Proxy settings can be controlled with system properties as described here
http://docs.oracle.com/javase/6/docs/technotes/guides/net/proxies.html.
Original comment by ishai...@gmail.com
on 27 Oct 2012 at 1:50
We needed this (we need the proxy just for recaptcha, for the other urls we
don't need it). I just created a class SimpleProxyHttpLoader as suggested by
d.bo...@gmail.com , with almost the same code as SimpleHttpLoader, with the
following modifications:
Create a proxy:
SocketAddress addr = new InetSocketAddress(this.proxyHost, this.proxyPort);
proxy = new Proxy(Proxy.Type.HTTP, addr);
When opening the connection:
connection = url.openConnection(proxy);
Original comment by rafael.s...@gmail.com
on 2 May 2013 at 3:33
Have you consider add the source of SimpleProxyHttpLoader to the project?
Original comment by lucas.bo...@gmail.com
on 10 Oct 2013 at 2:42
Attachments:
Original issue reported on code.google.com by
vallam.k...@gmail.com
on 9 Jun 2011 at 4:44