Squid bug

This pull request solve a problem with Squid proxy. In squid if no content-length is set in header the request is rejected. A workaround is to set content-length to 0 in header.

Sorry for the messy pull request, it has three commits rather then only one.