override dns
curl -ILk -H 'Host: example.com' https://1.2.3.4
specify interface
curl --interface eth0:0 pwnt.pw
ftps
curl -k --ftp-ssl --user username:password ftp://domain_or_ip_address
gzip enabled?
curl -H "Accept-Encoding: gzip" -ILk https://www.example.com/jquery-ui.css HTTP/1.1 200 OK Date: Thu, 20 Sep 2018 02:39:00 GMT Server: Apache Strict-Transport-Security: max-age=63072000; includeSubdomains; preload Last-Modified: Wed, 11 Apr 2018 12:50:39 GMT Accept-Ranges: bytes Cache-Control: max-age=2592000 Expires: Sat, 20 Oct 2018 02:39:00 GMT Vary: Accept-Encoding,User-Agent Content-Encoding: gzip X-Powered-By: PleskLin Content-Length: 8628 Content-Type: text/css
h2/http2 offered?
curl -vk --http2 https://yourserver ... * ALPN, offering h2 * ALPN, offering http/1.1 ... * ALPN, server accepted to use h2 ...
byte-range requests
# typically needed when setting up itunes podcasts, # this needs to be enabled in code for php, # but is enabled by default for static files in Apache and Nginx # to test that it's enabled for static files curl -r 0-199 http://example.com
# or specify directly through headers curl --header "Range: bytes=0-2" http://12.34.56.78/dev/bedsonline.com/public_html/starcollection/