Adding 'Content-Length' header for https request

Webservice requires 'Content-Length' header for https request. Otherwise it returns Error 411. Have a look issue #1.