private function curlInit(string $url, array $headers) {
        $c = curl_init($url);
        curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($c, CURLOPT_HEADER, true);
        if (count($headers) > 0) {
            $headerList = [];
            foreach ($headers as $name => $value) {
                $headerList[] = "$name: $value";
            }
            curl_setopt($c, CURLOPT_HTTPHEADER, $headerList);
            return $c;
        }
        return $c;
    }
private function curlInit(string $url, array $headers) {
        $c = curl_init($url);
        curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($c, CURLOPT_HEADER, true);
        if (count($headers) > 0) {
            $headerList = [];
            foreach ($headers as $name => $value) {
                $headerList[] = "$name: $value";
            }
            curl_setopt($c, CURLOPT_HTTPHEADER, $headerList);
            return $c;
        }
        return $c;
    }
@param string $url
@param array  $headers

@return resource