search by tags

for the user

adventures into the land of the command line

akamai staging... wah?

How to test an Akamai staging endpoint:

Go to your config and get your edge hostname:

Modify it to look like this:

Find it’s ip address:

$ dig
. 20 IN   A   123.45.678.90

Spoof the DNS

$ vim /etc/hosts

cURL that shiz

$ curl -IXGET


Just do a cURL to akamai’s staging domain (edge hostname) with the host header set as your domain name, remember to use -k for https as the cert wont match:

$ curl -k -H "Host:" -IXGET

HTTP/1.1 200 OK
Server: nginx
Content-Length: 211
Accept-Ranges: bytes
Strict-Transport-Security: max-age=31536000; includeSubDomains
Cache-Control: no-cache
Date: Thu, 20 Jul 2017 08:56:08 GMT
Connection: keep-alive
Content-Type: application/x-mpegURL
Access-Control-Max-Age: 86400
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: Server,range,hdntl,hdnts
Access-Control-Allow-Headers: origin,range,hdntl,hdnts
Access-Control-Allow-Methods: GET,POST,OPTIONS
Access-Control-Allow-Origin: *
X-Akamai-Staging: ESSL


$ curl -IXGET


$ curl -k -H "Host:" -IXGET