I'm trying to get values from nexus and assign it to a variable using curl command
The curl command i use
curl -u user_name:password --request GET "http://host_name:portnumber/URL
This works as expected in postman
when i try assigning this curl command to a variable and print it with this command
var=$(curl -u user_name:password --request GET "http://host_name:portnumber/URL)
echo $var
I couldn't see the value i get when i use the curl command in postman .
Please help to on this issue . thanks in advance .