Prints buffer only at the end of request
Used APR_BUCKET_IS_EOS() to check end of data
%ld instead of %d to avoid compilation warning