Akamai Debug Headers!
-H "Pragma:akamai-x-get-client-ip, akamai-x-cache-on, akamai-x-cache-remote-on, akamai-x-check-cacheable, akamai-x-get-cache-key, akamai-x-get-extracted-values, akamai-x-get-nonces, akamai-x-get-ssl-client-session-id, akamai-x-get-true-cache-key, akamai-x-serial-no, akamai-x-feo-trace, akamai-x-get-request-id"
curl -I -H "Host:<host>" http://<host>.edgesuite-staging.net
curl -I -H "Host:<host>" http://<host>.edgesuite.net
curl -k -I -H "Host:<host>" https://<host>.edgekey-staging.net
curl -k -I -H "Host:<host>" https://<host>.edgekey.net
- Edge Suite:
curl -I -H "Pragma:akamai-x-get-client-ip, akamai-x-cache-on, akamai-x-cache-remote-on, akamai-x-check-cacheable, akamai-x-get-cache-key, akamai-x-get-extracted-values, akamai-x-get-nonces, akamai-x-get-ssl-client-session-id, akamai-x-get-true-cache-key, akamai-x-serial-no, akamai-x-feo-trace, akamai-x-get-request-id" -H "Host:<host>" http://<host>.edgesuite-staging.net
- Edge Key (SSL):
curl -I -H "Pragma:akamai-x-get-client-ip, akamai-x-cache-on, akamai-x-cache-remote-on, akamai-x-check-cacheable, akamai-x-get-cache-key, akamai-x-get-extracted-values, akamai-x-get-nonces, akamai-x-get-ssl-client-session-id, akamai-x-get-true-cache-key, akamai-x-serial-no, akamai-x-feo-trace, akamai-x-get-request-id" -H "Host:<host>" https://<host>.edgekey-staging.net
alias akamai='curl -I -H "Pragma:akamai-x-get-client-ip, akamai-x-cache-on, akamai-x-cache-remote-on, akamai-x-check-cacheable, akamai-x-get-cache-key, akamai-x-get-extracted-values, akamai-x-get-nonces, akamai-x-get-ssl-client-session-id, akamai-x-get-true-cache-key, akamai-x-serial-no, akamai-x-feo-trace, akamai-x-get-request-id" '
akamai -H "Host:<host>" https://<host>.edgesuite-staging.net
akamai -H "Host:<host>" https://<host>.edgesuite.net
akamai -k -H "Host:<host>" https://<host>.edgekey-staging.net
akamai -k -H "Host:<host>" https://<host>.edgekey.net
akamai -k -s -H "Host:<host>" https://<host>.edgekey-staging.net
akamai -k -s -H "Host:<host>" https://<host>.edgekey.net
alias curl-perf-full="curl -w '\n content_type = %{content_type}\n filename_effective = %{filename_effective}\n ftp_entry_path = %{ftp_entry_path}\n http_code = %{http_code}\n http_connect = %{http_connect}\n local_ip = %{local_ip}\n local_port = %{local_port}\n num_connects = %{num_connects}\n num_redirects = %{num_redirects}\n redirect_url = %{redirect_url}\n remote_ip = %{remote_ip}\n remote_port = %{remote_port}\n size_download = %{size_download}\n size_header = %{size_header}\n size_request = %{size_request}\n size_upload = %{size_upload}\n speed_download = %{speed_download}\n speed_upload = %{speed_upload}\n ssl_verify_result = %{ssl_verify_result}\n time_appconnect = %{time_appconnect}\n time_connect = %{time_connect}\n time_namelookup = %{time_namelookup}\n time_pretransfer = %{time_pretransfer}\n time_redirect = %{time_redirect}\n time_starttransfer = %{time_starttransfer}\n time_total = %{time_total}\n url_effective = %{url_effective}\n\n' -o /dev/null -s"
- Usage:
curl-perf-full http://domain.com"
- Usage:
alias curl-perf="curl -w '\n time_namelookup = %{time_namelookup}\n time_appconnect = %{time_appconnect}\n time_connect = %{time_connect}\n time_redirect = %{time_redirect}\n time_pretransfer = %{time_pretransfer}\n time_starttransfer = %{time_starttransfer}\n time_total = %{time_total}\n\n' -o /dev/null -s "
- Usage:
curl-perf http://domain.com"
- Usage:
- Using a config file:
curl --config ~/.curlrc/akamai -LsD - "https://domain.com"
- Using timing file:
curl -w '@/Users/USERNAME/.curlrc/curl-timing.txt' -LsD - -o /dev/null "https://domain.com"
- Using both:
curl --config ~/.curlrc/akamai -w '@/Users/USERNAME/.curlrc/curl-timing.txt' -LsD - "https://domain.com"
- Assuming there is no output configuration within ~/.curlrc/akamai:
curl --config ~/.curlrc/akamai -w "@Users/USERNAME/.curlrc/curl-timing.txt" -LsD - -o /dev/null "https://domain.com" 2>&1 | grep "^HTTP\|^X-Cache:\|time_total:"
- In a loop:
while true;do curl --config ~/.curlrc/akamai -w "@/Users/USERNAME/.curlrc/curl-timing.txt" -LsD - -o /dev/null "http://domain.com" 2>&1 | grep "^HTTP\|^X-Cache:\|time_total:";done