Properly set the request method in HTTPS connections