Getting Data In
Highlighted

When running a curl command, why I am getting that "401 unauthorized" error despite of having all the REST API capabilities?

Path Finder

Hi there,

I am trying the run curl -k -u james:james@123 https://localhost:8089/services/search/jobs -d search="search *" on the search head but i am getting the error 401 Unauthorized. But the user has "restpropertiesset, restpropertiesget","restappsview". Can i please know why i am still getting that 401 unauthorized error despite of having all the REST API capabilities ?

0 Karma
Highlighted

Re: When running a curl command, why I am getting that "401 unauthorized" error despite of having all the REST API capabilities?

Communicator

Hi,

Could you try the command with double quotes:

$curl -k -u "user:password" https://localhost:8089/services/search/jobs -d search="search "

What version of curl you use?

Rodrigo Ribeiro

0 Karma
Highlighted

Re: When running a curl command, why I am getting that "401 unauthorized" error despite of having all the REST API capabilities?

Explorer

Can I use CURL to retrieve saved search?

0 Karma