As your problem is traversing a proxy (which in your case is a Servlet+HTTPClient), configure your client to use localhost:8080
as proxy and url as normal: http://localhost:8081/...
:
hostConfiguration.setProxy("localhost", 8080);
hostConfiguration.setHost("localhost", 8081);