I'm writing a document for a curl request.
User should enter email and password, and I need to send user's email and sha1sum of the password via GET method.
If that would be right, the command would look like:
curl 'http://example.com/auth?email={EMAIL}&pwd={SHA1SUM(PASSWORD)}'
I know about printf variable | sha1sum
, but how should I use it to concatenate to the quoted string of CURL
?
Please not that it should stay a ONE line command.