adjusted post parser to rely on content length