This shows you the differences between two versions of the page.
| 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 \ | + | $ 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 | curl -s smtp://gate.isp.un/ --mail-from userX@isp.un --mail-rcpt userX@isp.un --upload-file email.txt | ||
| </code> | </code> | ||