Search code examples
c#.netbasic-authenticationsolrnet

Solrnet - How to initialize instance with basic authentication


It is possible to connect solr instance with basic authentication ?

I have tried with :

Startup.Init<Page>("http://user:mdp@localhost:8080/solr");

But it doesn't work.

have you got a solution ?

Thanks.


Solution

  • Implement a IHttpWebRequestFactory that returns an authenticated web request. See http://code.google.com/p/solrnet/issues/detail?id=66