Index: includes/common.inc =================================================================== --- includes/common.inc (revision 395) +++ includes/common.inc (working copy) @@ -931,6 +931,10 @@ } fclose($fp); + if (function_exists('drd_debug')) { + $debug_text = str_replace('>', ']', str_replace('<', '[', $response)); + drd_debug(0, DRD_DEBUG_OUTPUT, $debug_text); + } // Parse response headers from the response body. list($response, $result->data) = explode("\r\n\r\n", $response, 2); $response = preg_split("/\r\n|\n|\r/", $response);