Skip to content

Instantly share code, notes, and snippets.

@hoox
Last active May 15, 2023 16:15
Show Gist options
  • Save hoox/3534e8ed6f04759ab768 to your computer and use it in GitHub Desktop.
Save hoox/3534e8ed6f04759ab768 to your computer and use it in GitHub Desktop.
Akamai Configuration Testing

Akamai CDN Configuration Testing

Akamai Debug Headers!

Request 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"

Edge Suite

  • curl -I -H "Host:<host>" http://<host>.edgesuite-staging.net
  • curl -I -H "Host:<host>" http://<host>.edgesuite.net

Edge Key (SSL)

  • curl -k -I -H "Host:<host>" https://<host>.edgekey-staging.net
  • curl -k -I -H "Host:<host>" https://<host>.edgekey.net

Example:

  • 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

Create An Alias:

  • 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" '

Usage Examples:

  • akamai -k -H "Host:<host>" https://<host>.edgesuite-stagingg.net

  • akamai -k -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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment