Curl: Difference between revisions
From DWIKI
m (→HOWTO) |
|||
Line 6: | Line 6: | ||
==Specify hostname for https request== | ==Specify hostname for https request== | ||
Try | |||
curl -H "Host: some.name" https://example.com | |||
vague stuff, ignore | |||
https://stackoverflow.com/questions/50279275/curl-how-to-specify-target-hostname-for-https-request | https://stackoverflow.com/questions/50279275/curl-how-to-specify-target-hostname-for-https-request | ||
curl --resolve example.com:443:192.0.2.1 https://example.com | curl --resolve example.com:443:192.0.2.1 https://example.com |
Latest revision as of 15:53, 24 September 2024
HOWTO
Check supported TLS version
curl -I -v --tlsv1.2 --tls-max 1.2 https://www.example.com/
Specify hostname for https request
Try
curl -H "Host: some.name" https://example.com
vague stuff, ignore
https://stackoverflow.com/questions/50279275/curl-how-to-specify-target-hostname-for-https-request
curl --resolve example.com:443:192.0.2.1 https://example.com