ruflin/Elastica — pull request #124 by Akhavi (2012-01-07 15:00:12+00:00)
Title: Logging version of Transport/HTTP.php - File.php

Often when I am working on a project, I want to be able to log all HTTP requests so I can replay them using curl from the command line.

I made a one-liner change to HTTP.php to add logging and also a very rough log processor that will generate a set of curl commands that you execute or edit as needed to replay the functions.

This has been very useful when I have been indexing data at one site where the data is actually located then want to (re)generate indexes on another cluster without having access to the original data.