Debugging Akamai headers with cURL

CDNs are becoming commonplace, and the most popular of them all is Akamai. However, where a CDN can deliver benefits, they can also provide a stumbling block when you are troubleshooting a web service, application, or even a simple home page. Look at it this way, with a CDN of any type, you are generally working with cached objects and you want to validate the traffic behavior. So, with this in mind, we will now discuss how cURL can come to the rescue:

To begin with, we must issue a properly formed Pragma header and, to do this, you can use the following syntax:

$ curl -IXGET http://www.example.com/path/to/home.html

However, if you wish to include the debug information, you can use:

$ curl -IXGET -H "Pragma: akamai-x-cache-on, ...

Get Troubleshooting CentOS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.