static Cookie ToNetCookie(HttpCookie cookie)
        {
            var nc = new Cookie(cookie.Name, cookie.Value, cookie.Path, cookie.Domain);
            nc.Secure = cookie.Secure;

            return nc;
        }
        static HttpCookie ToNativeCookie(Cookie cookie)
        {
            var nc = new HttpCookie(cookie.Name, cookie.Value);
            nc.Domain = cookie.Domain;
            nc.Path = cookie.Path;
            nc.Secure = cookie.Secure;

            return nc;
        }