Difference between revisions of "Curl"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
Testing ciphers | Testing ciphers | ||
``` | ``` | ||
− | # curl https:// | + | # curl https://www.example.com -k -v --location-trusted --sslv2 |
− | curl https:// | + | curl https://www.example.com -k -v --location-trusted --tlsv1.1 |
− | curl https:// | + | curl https://www.example.com -k -v --location-trusted --tlsv1.2 |
− | curl https:// | + | curl https://www.example.com -k -v --location-trusted --tlsv1.3 |
+ | ``` | ||
+ | |||
+ | ``` | ||
+ | for host in 10.1.1.10 10.1.1.52 10.1.1.16 10.1.1.16; do echo $host; curl --header "Host: www.example.org" http://$host/downloads/myfile.png --output /dev/null; done | ||
``` | ``` |
Revision as of 21:10, 9 January 2021
https://daniel.haxx.se/blog/2018/04/05/curl-another-host/
Testing ciphers
# curl https://www.example.com -k -v --location-trusted --sslv2 curl https://www.example.com -k -v --location-trusted --tlsv1.1 curl https://www.example.com -k -v --location-trusted --tlsv1.2 curl https://www.example.com -k -v --location-trusted --tlsv1.3
for host in 10.1.1.10 10.1.1.52 10.1.1.16 10.1.1.16; do echo $host; curl --header "Host: www.example.org" http://$host/downloads/myfile.png --output /dev/null; done