O'Reilly logo

Troubleshooting CentOS by Jonathan Hobson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required