Added: ignore ssl option

This commit is contained in:
Ray committed 2021-10-12 19:55:00 +01:00
1 parent 60f199b0f2
commit 00f58d8259
7 files changed
+80 -36

No files matched your search

+4 -3
View File
@@ -14,9 +14,9 @@ namespace BookmarkManager
protected WebClient webClient2 = null;
public BookmarkResult RetrieveDetails(string url)
public BookmarkResult RetrieveDetails(string url, bool ignoreSSL)
{
string sourceCode = retrieveSourceCode(url);
string sourceCode = retrieveSourceCode(url, ignoreSSL);
if (string.IsNullOrWhiteSpace(sourceCode))
{
return null;
@@ -77,9 +77,10 @@ namespace BookmarkManager
}
protected string retrieveSourceCode(string url)
protected string retrieveSourceCode(string url, bool ignoreSSL)
{
if (webClient == null) webClient = new HttpWeb();
webClient.IgnoreSSL = ignoreSSL;
string sourceCode;