--TEST-- message body add part --SKIPIF-- --FILE-- addPart(new http\Message("This: is a header\n\nand this is the data\n")); echo $temp; ?> DONE --EXPECTF-- Test --%x.%x This: is a header Content-Length: 21 and this is the data --%x.%x-- DONE