Ihar Hancharenka 35804c4da9 m
2023-09-06 09:23:53 +03:00

38 строки
1.4 KiB
Plaintext
Исходник Ответственный История

Этот файл содержит неоднозначные символы Юникода

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

curl
-v
verbose
-I, --head
-s - silent
https://unix.stackexchange.com/questions/196549/hide-curl-output
suppress progress
--connect-timeout <seconds>
Maximum time in seconds that you allow the connection to the
server to take. This only limits the connection phase, once
curl has connected this option is of no more use. Since 7.32.0,
this option accepts decimal values, but the actual timeout will
decrease in accuracy as the specified timeout increases in deci
mal precision. See also the -m, --max-time option.
-m, --max-time <seconds>
Maximum time in seconds that you allow the whole operation to
take. This is useful for preventing your batch jobs from hang
ing for hours due to slow networks or links going down. Since
7.32.0, this option accepts decimal values, but the actual time
out will decrease in accuracy as the specified timeout increases
in decimal precision. See also the --connect-timeout option.
--keepalive-time
in seconds
-T, --upload-file <file>
Transfer local FILE to destination
data
-d @en1c.json
--data-raw '{
}'
headers
-H "name: value"
samples:
curl -XPUT -k -u <usr>:<pwd> -T <filename> <url>/<filename>
-XPOST -d "param1=value1&param2=value2"