コード例 #1
0
        protected override XDocument DownloadXml(string url, string userName, string password, string cookie = null)
        {
            WebClientXml webClientXml = new WebClientXml
            {
                // hudson/jenkins api's apparently always require base64 encoded credentials rather than basic auth
                AuthenticationType = AuthenticationTypeEnum.Base64EncodeInHeader
            };

            return webClientXml.DownloadXml(url, userName, password, cookie);
        }
コード例 #2
0
 protected virtual XDocument DownloadXml(string url, string userName, string password, string cookie = null)
 {
     WebClientXml webClientXml = new WebClientXml();
     return webClientXml.DownloadXml(url, userName, password, cookie);
 }
コード例 #3
0
        protected virtual XDocument DownloadXml(string url, string userName, string password, string cookie = null)
        {
            WebClientXml webClientXml = new WebClientXml();

            return(webClientXml.DownloadXml(url, userName, password, cookie));
        }