Using Curl to access web pages

Curl with selfsigned cert to ip

export CURL_IP="10.1.1.5"
export CURL_HOST="myhost.co.nz"
export CURL_CA_FILE="ca_my_selfsigned_cert.pem"

curl -i --cacert ${CURL_CA_FILE} --resolve ${CURL_HOST}:443:${CURL_IP} "https://${CURL_HOST}/"

Set headers

Use Curl to measure web page response

Curl with http proxy

Curl and set useragent

Curl with host header/SNI


CategoryLinux

Linux/Curl (last edited 2025-07-31 03:50:11 by PieterSmit)