Archived
Added: ignore ssl option
This commit is contained in:
1 parent
60f199b0f2
commit
00f58d8259
7 files changed
+80
-36
No files matched your search
+4
-3
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user