Commit a7c21a4f authored by Antje Wulff's avatar Antje Wulff
Browse files

HTTP / HTTPS Unterscheidung bei ThinkHandle eingefügt

parent 0932757e
......@@ -1436,7 +1436,13 @@ namespace HaMSTR_ETLBuilder_Forms
Uri address = new Uri(thinkHTTPConnection + urlAppendix);
WebClient myWebClient = new WebClient();
ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072; //TLS 1.2
if(thinkHTTPConnection.Contains("https"))
{
ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072; //TLS 1.2 FÜR HTTPS
}else { }
myWebClient.Encoding = Encoding.UTF8;
myWebClient.Credentials = new System.Net.NetworkCredential(thinkUserName, thinkUserPwd);
myWebClient.BaseAddress = address.AbsoluteUri;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment