title: CrateDB cannot connect in HttpEndpoint to remote secure server
body: <p>I've been testing crateDB 3.3.4 for a few weeks now, and I've always been connecting through localhost (127.0.0.1) in http. I've been bulk importing data with HttpEndpoint on my localhost successfully.</p>
  
  <p>I'm now testing on a cloud cluster in https. I manage to open Chrome and logon on the server, but I cannot manage to remote in C# via HttpEndpoint.</p>
  
  <pre><code>HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create("https://remoteServerUrl:4200/_sql");
        httpWebRequest.Method = "POST";
        httpWebRequest.Credentials = new NetworkCredential("username", "password");
        httpWebRequest.Timeout = 600000;
        httpWebRequest.ContentType = "application/json";
  
        using(var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
        {
          streamWriter.Write(request);
          streamWriter.Flush();
        }
  
        HttpWebResponse response = (HttpWebResponse)httpWebRequest.GetResponse();
        success = response.StatusCode == HttpStatusCode.OK;
  </code></pre>
  
  <p>When I try the following code, I always get "The underlying connection was closed: An unexpected error occurred on a send." and in the exception, I see "Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host."</p>
  
  <p>Any Idea what I'm doing wrong here? I was doing the same thing before, on my localhost, but without specifying credentials, and it was working great.</p>