$value) { header("$name: $value"); } // Output the response echo $response; // Flush the output buffer to the client ob_end_flush();