title: How can disable SSL peer verification in http client (httpc) in erlang
body: <p>I sent a restfull api request by http client, but i get below error:</p>
  
  <pre><code>{error,{failed_connect,[{to_address,{"https://example.com",443}},
  {inet,[inet],{tls_alert,"record overflow"}}]}}
  </code></pre>
  
  <p>i found that SSL peer verification made this problem. how can i disable it?</p>
  
  <p><strong>my code:</strong></p>
  
  <pre><code>test() -&gt;
     inets:start(),
     ssl:start(),
     RequestBody = "",
     Request = {"https://example.com", [{"X-API-CODE",""}, {"Accept","application/json"}, {"access-token",""}], "application/json", RequestBody},
     {ok, {_, _, ResponseBody}} = httpc:request(post, Request, [], []),
     io:format("~st", [ResponseBody]).
  </code></pre>