This should help ....

HttpClient client = new HttpClient();
client.getParams().setAuthenticationPreemptive(true);
AuthScope scope = new AuthScope(AuthScope.ANY_HOST,AuthScope.ANY_PORT);
client.getState().setCredentials(scope, new
UsernamePasswordCredentials(user, password));

Regards,
Jayendra

On Thu, Jan 27, 2011 at 4:47 PM, Darniz <rnizamud...@edmunds.com> wrote:
>
> thanks exaclty i asked my domain hosting provider and he provided me with
> some other port
>
> i am wondering can i specify credentials without the port
>
> i mean when i open the browser and i type
> www.mydomainmame/solr i get the tomcat auth login screen.
>
> in the same way can i configure the http client so that i dont have to
> specify the port
>
> Thanks
> darniz
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/configure-httpclient-to-access-solr-with-user-credential-on-third-party-host-tp2360364p2364190.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to