Added support for method and payload (for POST requests).
Send Content-Length when there is payload.