title: I can't connect to server using curl
body: <p>When I try to send request to the server in localhost I receive this message :</p>
  
  <blockquote>
    <p>Error: call to URL
    <a href="https://wasl.elm.sa/WaslPortalWeb/rest/DriverRegistration/send" rel="nofollow noreferrer">https://wasl.elm.sa/WaslPortalWeb/rest/DriverRegistration/send</a> failed
    with status 200, response {"resultCode":503,"resultMessage":"Yakeen
    Failure: The ID Is Not Found at
    NIC","referenceNumber":0,"valid":false}, curl_error , curl_errno 0</p>
  </blockquote>
  
  <p>On the live server I receive this message :</p>
  
  <blockquote>
    <p>string(171) "{"apiKey":"My api
    key","captainIdentityNumber":"12355567897","dateOfBirth":"15-07-1400","emailAddress":"mo@mo.com","mobileNumber":"966508060095"}"
    Error: call to URL
    <a href="https://wasl.elm.sa/WaslPortalWeb/rest/DriverRegistration/send" rel="nofollow noreferrer">https://wasl.elm.sa/WaslPortalWeb/rest/DriverRegistration/send</a> failed
    with status 0, response , curl_error Unknown SSL protocol error in
    connection to wasl.elm.sa:443 , curl_errno 35</p>
  </blockquote>
  
  <p>I use this script to make the request:</p>
  
  <pre><code>&lt;?php
  
      //driver registartion url   
      $url = "https://wasl.elm.sa/WaslPortalWeb/rest/DriverRegistration/send";     
      $data=["apiKey"=&gt;"My apikey","captainIdentityNumber"=&gt;"1234567897","dateOfBirth"=&gt;"15-07-1400","emailAddress"=&gt;"mo@mo.com","mobileNumber"=&gt;"966508060095"];
      $content = json_encode($data);
      $curl = curl_init($url);
  
      curl_setopt($curl, CURLOPT_POST, true);
      curl_setopt($curl, CURLOPT_POSTFIELDS, $content);
      curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
      curl_setopt($curl, CURLOPT_HEADER,false);
      curl_setopt($curl, CURLOPT_HTTPHEADER,array("Content-type: application/json"));
      curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
      var_dump($content);
      $json_response = curl_exec($curl);
      $status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
      if ( $status != 201 ) {
          die("Error: call to URL $url failed with status $status, response $json_response, curl_error " . curl_error($curl) . ", curl_errno " . curl_errno($curl));
      }
      curl_close($curl);
      $response = json_decode($json_response, true);
      var_dump($response);
      ?&gt;
  </code></pre>
  
  <p>my api key it's correct one given by the server owner</p>