$stream_opts = [ "ssl" => [ "verify_peer"=>false, "verify_peer_name"=>false, ]]; $response = file_get_contents($url, false, stream_context_create($stream_opts));