added header processing for content type and transfer encoding - chunked