sending dummy output, httpresponse checking output before sending headers