9 Replies Latest reply on Nov 9, 2009 1:44 PM by Claus Ibsen

    http proxy settings

    vector_jdev.work Newbie

      We are having Fuse ESB and try to use http endpoint with proxy error.

      As I see http endpoint uses HttpClient, so I'll try to fetch something from our test program with pure HttpClient with the same error, but if you the following code it works:


      HttpClient httpClient = new HttpClient();

      Credentials proxyCreds = new NTCredentials("login", "password", "localhost", "domain");

      httpClient.getHostConfiguration().setProxy("proxy.comp", 8080);

      httpClient.getState().setProxyCredentials(AuthScope.ANY, proxyCreds);

      //fetching code not shown


      The question is how to configure proxy&credentials in XML camel route (without using any code).

      PS. We use ESB with camel 1.6.1.fuse installed. There are some properties in HttpEndpoint, but they are starting with 1.6.2 version.

      So we need: to install 1.6.2 version of http component&camel or configure existing one with appropriate proxy&credentials.