basic handling of content-length, still need to deal with content-disposition