Core Development

Basic CURL Calls

To Get a complete List of Options

curl --help curl
	

Basic Curl Get Request

curl https://xoax.net/
	

Curl Get Request and Send the Repsonse to a File

curl https://xoax.net/ > xoax.txt
	

Curl Get Request with a Single Timing

curl https://xoax.net/ -s -o /dev/null -w "%{time_total}"
	

Curl Get Request with All Timings

curl https://xoax.net/ -s -o /dev/null -w " Name Lookup: %{time_namelookup}\n Connect: %{time_connect}\n App Connect: %{time_appconnect}\n Pretransfer: %{time_pretransfer}\n Redirect: %{time_redirect}\n Start Transfer: %{time_starttransfer}\n Total: %{time_total}\n"
	

Curl Get Request with a Complete Time Trace

curl -v --trace-time https://xoax.net
	

Curl Get Request with Connection Certificate Information

curl -I -kv -w "" https://xoax.net
	

Curl Get Request with Response Headers Included

curl -i https://xoax.net/
	

Curl Get Request with Only Response Headers Included

curl -I https://xoax.net/
	

Check Whether the Target URL Supports HTTP/2

curl -I --http2 https://xoax.net/
	

Curl Get Request with a Limit (in Seconds) on the Time to Get a Connetion

curl --connect-timeout 2 https://xoax.net/
	

Curl Get Request with a Header

curl https://xoax.net/ -H "Accept: text/html"
	

Curl Get Request with a Follow on Redirects

curl -L https://xoax.net/
	
 
 

© 2007–2025 XoaX.net LLC. All rights reserved.