I am using curl to search artifacts from Artifactory, like this:
curl -s -u user:passwd http://artifactory:8081/artifactory/api/search/gavc?a=8710&v=REL-0041-20181219.003944-userdebug&c=fastboot | /usr/bin/jq -r .results[].uri
But it shows access denied error
[1] 25600
[2] 25601
[2]+ Done v=REL-0041-20181119.003944-userdebug
Access denied
I have no idea how to debug this problem, give me some idea please.
curl version: 7.47.0
curl -s -u user:passwd "http://artifactory:8081/artifactory/api/search/gavc?a=8710&v=REL-0041-20181219.003944-userdebug&c=fastboot"
first, your command is not correctly escaped