Add some glue to generate output similar to 1.x serie of php_http