You're partly right. The solution in the link was for CommonsHttpSolrServer, it does work for HttpSolrServer, but the principle is the same.
Actually, I found solution for the new HttpClient here: http://stackoverflow.com/questions/2014700/preemptive-basic-authentication-with-apache-httpclient-4/11868040#11868040 (this is my modification of some other answer) -- View this message in context: http://lucene.472066.n3.nabble.com/HTTP-Basic-Authentication-with-HttpSolrServer-tp3999829p3999849.html Sent from the Solr - User mailing list archive at Nabble.com.