/**
  * Access LoginRadius API server by fsockopen method
  *
  * @param type $request_url
  * @param type $options
  * @return type
  */
 private function fsockopenApiMethod($request_url, $options = array())
 {
     $ssl_verify = isset($options['ssl_verify']) ? $options['ssl_verify'] : false;
     $method = isset($options['method']) ? strtolower($options['method']) : 'get';
     $data = isset($options['post_data']) ? $options['post_data'] : array();
     $content_type = isset($options['content_type']) ? $options['content_type'] : 'form_params';
     if (!empty($data)) {
         $options = array('http' => array('method' => strtoupper($method), 'timeout' => 50, 'header' => 'Content-type :application/' . $content_type, 'content' => $content_type == 'json' ? json_encode($data) : LoginRadiusSDK\LoginRadius::queryBuild($data)), "ssl" => array("verify_peer" => $ssl_verify));
         $context = stream_context_create($options);
     } else {
         $context = NULL;
     }
     $json_response = @file_get_contents($request_url, false, $context);
     if (!$json_response) {
         throw new LoginRadiusSDK\LoginRadiusException('file_get_contents error');
     }
     return $json_response;
 }