Experiment/set content length

Discussion on how to set content-length correctly.