Advertisement
Guest User

Untitled

a guest
Jul 14th, 2017
608
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. curl http://api.somesite.com/test/blah?something=123
  2.  
  3. curl -u username http://example.com
  4.  
  5. curl -u username:password http://example.com
  6.  
  7. curl --netrc-file my-password-file http://example.com
  8.  
  9. machine host.domain.com login myself password secret
  10.  
  11. curl -u USERNAME http://server.example
  12.  
  13. curl http://username:password@api.somesite.com/test/blah?something=123
  14.  
  15. curl -Lk -XGET -u "${API_USER}:${API_HASH}" -b cookies.txt -c cookies.txt -- "http://api.somesite.com/test/blah?something=123"
  16.  
  17. curl -u user:$(cat .password-file) http://example-domain.tld
  18.  
  19. server=server.example.com
  20. file=path/to/my/file
  21. user=my_user_name
  22. pass=$(gkeyring.py -k login -tnetwork -p user=$user,server=$server -1)
  23.  
  24. curl -u $user:$pass ftps://$server/$file -O
  25.  
  26. curl -u user-name -p http://www.example.com/path-to-file/file-name.ext > new-file-name.ext
  27.  
  28. curl --url url -K- <<< "--user user:password"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement