Book Image

Troubleshooting CentOS

By : Jonathan Hobson
Book Image

Troubleshooting CentOS

By: Jonathan Hobson

Overview of this book

Table of Contents (17 chapters)
Troubleshooting CentOS
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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, 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" http://www.example...