Joined November 2014
·

Ian Bamforth

Leeds, United Kingdom
·

Posted to Securely use basic auth with curl over 1 year ago

Like goshaf, I couldn't get this to work:
{ echo -n 'user = "'; cat password.txt; echo '"'; }

I found a (simpler?) alternative, which works as long as you're using bash:

curl -u $(< password.txt) https://googles

Achievements
1 Karma
0 Total ProTip Views