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.
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.