Add content length header to the request.

- Web servers like nginx expect a content length or will respond
with 411.
Merge pull request #3 from stantona/master

Add content length header to the request.