reflect https client and content-length header

If ssl enabled use https module. Instead use http.
Flavor Content-Length header.