Try setting the Content-Length header as well.