Re: SolrJ and digest authentication

2011-03-10 Thread Erlend Garåsen
I figured it out. Since this Solr server does not has an SSL interface, I had to change the following line from 443 to 80: AuthScope scope = new AuthScope(host, 80, "resin"); Erlend On 09.03.11 17.09, Erlend Garåsen wrote: I'm trying to do a search with SolrJ using digest authentication, bu

SolrJ and digest authentication

2011-03-09 Thread Erlend Garåsen
I'm trying to do a search with SolrJ using digest authentication, but I'm getting the following error: org.apache.solr.common.SolrException: Unauthorized I'm setting up SolrJ this way: HttpClient client = new HttpClient(); List authPrefs = new ArrayList(); authPrefs.add(AuthPolicy.DIGEST); cl