Re: Error when adding user for Solr Basic Authentication

2017-04-13 Thread Zheng Lin Edwin Yeo
i found from StackOverflow that we have to use escaping of single quote and to use double quote around the JSON string. http://stackoverflow.com/questions/43387719/error-when-adding-user-for-solr-basic-authentication/43387895#43387895 curl --user user:password http://localhost:8983/solr/admin

Error when adding user for Solr Basic Authentication

2017-04-13 Thread Zheng Lin Edwin Yeo
Hi, When I try to add the user for the Solr Basic Authentication using the following method in curl curl --user user:password http://localhost:8983/solr/admin/authentication -H 'Content-type:application/json' -d '{ "set-user": {"tom" : "TomIsCool" , "harry":"HarrysSecret"}}' I