User Tools

Site Tools


утилита_curl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
утилита_curl [2026/07/27 16:01]
val [Протокол SMTP]
утилита_curl [2026/09/07 11:31] (current)
val [Примеры использования]
Line 22: Line 22:
  
 # docker run --rm alpine/curl -sS https://​ya.ru # docker run --rm alpine/curl -sS https://​ya.ru
 +
 +$ curl -u "​admin"​ http://​val.bmstu.ru:​8080 -v
 +$  curl -u "​admin:​12345678"​ http://​val.bmstu.ru:​8080 -v
 +$  echo -n "​admin:​12345678"​ | base64
 +$  curl http://​val.bmstu.ru:​8080/​v1/​models -H "​Authorization:​ Basic YWRtaW46MTIzNDU2Nzg="​
 +
 +$  curl http://​val.bmstu.ru:​8080/​v1/​models -H "​Authorization:​ Bearer 1234567890abcdefg"​
 </​code>​ </​code>​
  
Line 53: Line 60:
 Pass Pass
 </​code><​code>​ </​code><​code>​
-$ while curl -s https://​ya.ru >/​dev/​null;​ do sleep 600; curl -s smtp://​gate.isp.un/​ --mail-from userX@isp.un --mail-rcpt userX@isp.un --upload-file email.txt+$ while curl -s https://​ya.ru >/​dev/​null;​ do sleep 600; done \  
 +curl -s smtp://​gate.isp.un/​ --mail-from userX@isp.un --mail-rcpt userX@isp.un --upload-file email.txt
 </​code>​ </​code>​
утилита_curl.1785157292.txt.gz · Last modified: 2026/07/27 16:01 by val