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/10/30 14:17] (current) val [Примеры использования] |
||
|---|---|---|---|
| Line 15: | Line 15: | ||
| $ curl --connect-to "":"":kubeN:443 https://gowebd.corpX.un #-vk | $ curl --connect-to "":"":kubeN:443 https://gowebd.corpX.un #-vk | ||
| - | $ curl -x gate:3128 https://ya.ru #-v | + | $ curl -x gate.isp.un:3128 https://val.bmstu.ru |
| curl "http://server.corpX.un:8088/rawman?action=login&username=admin&secret=admin" -c cookies.txt | curl "http://server.corpX.un:8088/rawman?action=login&username=admin&secret=admin" -c cookies.txt | ||
| 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> | ||