On 08.07.11 10:39, "Phil Rice" <[email protected]> wrote: >DefaultHttpClient client = new DefaultHttpClient(); >client.getCredentialsProvider().setCredentials(new AuthScope("localhost", >8080), new UsernamePasswordCredentials("admin", "admin"));
I guess you need to use preemptive auth: client.getParams().setAuthenticationPreemptive(true); http://hc.apache.org/httpclient-3.x/authentication.html Regards, Alex -- Alexander Klimetschek Developer // Adobe (Day) // Berlin - Basel
