in reply to Content Length

According to HTTP/1.1 standard, this field is not mandatory. A solution could be first try to determine the size base on Content-Length, but calculate by yourself, if the field is not present.