unable to pass values to curl command using shell variable
curl -F 'file=@/root/bin/"$VARIABLE"' http://localhost:8000/api/v1/
The error says
curl: (26) Failed to open/read local data from file/application
unable to pass values to curl command using shell variable
curl -F 'file=@/root/bin/"$VARIABLE"' http://localhost:8000/api/v1/
The error says
curl: (26) Failed to open/read local data from file/application
You can solve this problem with
curl -F "file=@/root/bin/$VARIABLE" http://localhost:8000/api/v1
Also verify that the user has the correct permission of reading for this file.
If you want to know what it is happening, use "-v" argument in curl.