Joined June 2013
·

Gosha Frost

Israel
·

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

{ echo -n 'user = "'; cat password.txt; echo '"'; } - this one didn't work for me ( and curl :))<br>
I used this syntax to pass the file with the credentials to curl <br>
cat password.txt | sed 's/^/user=":/;s/$/\"/' | curl ... -K

Achievements
1 Karma
0 Total ProTip Views