Следовать редиректам подробно curl
Следовать до 5 редиректов с полным выводом запрос/ответ
curl -Lv --max-redirs 5 https://example.com
more curl
all 21 commands →
Сохранить ответ в файл
curl -sSL -o /tmp/result.json https://api.example.com/data
Время до первого байта
curl -o /dev/null -sS -w 'ttfb: %{time_starttransfer}s\ntotal: %{time_total}s\n' https://example.com
Только заголовки ответа
curl -sI https://example.com
Загрузить файл multipart
curl -F 'file=@./report.pdf' -F 'user=alice' https://upload.example.com/api
HTTP/2 запрос
curl --http2 -sI https://example.com | grep -i 'http\|alt-svc'