CURL

From Indie IT Wiki
Revision as of 13:32, 22 April 2021 by imported>Plittlefield (→‎SNI)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A command line tool for transferring data with URLs.

https://curl.haxx.se

SNI

Server Name Identification is the method of requesting a partuclar host on a shared server, to make sure you request the correct SSL Certificate.

The curl option 'resolve' allows you to specify which IP address to resolve the domain name to, great for testing an Let's Encrypt SSL Certificate...

curl -vik --resolve domain.org.uk:443:172.17.0.2 https://domain.org.uk

POST

curl -X POST -F 'ip=23.129.64.235' https://www.zerospam.org/wp-json/v1/query

Output To File

curl -O URL

Follow Redirection With Details

curl --insecure --verbose --location URL

Manual

https://curl.haxx.se/docs/manual.html