Monday, July 29, 2013

Connect with RestTemplate via Proxy Server

If you try to connect to Rest Url, and if you are using a Proxy Server and try to connect with RestTemplate Client you will have an error like this:

"407 Proxy Authentication required"

You will have to configure your RestTemplate by the following steps:

After of that, you should be put httpclient jar in your classpath, download it from http://hc.apache.org/httpclient-3.x/

If you try to connect again with a UnitTest that will fix your problem.

Best Regards,

No comments:

Post a Comment