Skip to content

Instantly share code, notes, and snippets.

@hoox
Last active May 15, 2023 16:15
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • 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 -H "Host:<property-host>" http://<edge-host>.edgesuite-staging.net
  • curl -H "Host:<property-host>" http://<edge-host>.edgesuite.net

Edge Key (SSL)

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

Example:

  • curl -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:<property-host>" http://<edge-host>.edgesuite-staging.net

Create An Alias:

  • alias akamai='curl -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:

HTTP

  • akamai -H "Host:<property-host>" http://<edge-host>.edgesuite-staging.net
  • akamai -H "Host:<property-host>" http://<edge-host>.edgesuite.net

HTTPS

  • akamai -k -H "Host:<property-host>" https://<edge-host>.edgekey-staging.net
  • akamai -k -H "Host:<property-host>" https://<edge-host>.edgekey.net

HTTPS (Silent Mode)

  • akamai -k -s -H "Host:<property-host>" https://<edge-host>.edgekey-staging.net
  • akamai -k -s -H "Host:<property-host>" https://<edge-host>.edgekey.net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment