GistLabs / mechanize

mechanize for java
http://gistlabs.com/software/mechanize-for-java/
Mozilla Public License 2.0
78 stars 21 forks source link

Ease the use of a proxy #71

Open MartinKersten opened 10 years ago

MartinKersten commented 10 years ago

Sometimes one need to specify a proxy.

HttpHost proxy = new HttpHost("ip", 8080); agent.getClient().getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY,proxy);

This might be best become a single method in the Mechanize / MechanizeAgent class. Also the use of a proxy might become part of the wiki documentation.