Autoset Content-length: header for POST requests