Is it possible to ignore cert errors on HTTP downloads? #68
Replies: 4 comments 3 replies
-
It's possible to add an Send a PR if you feel like implementing it. |
Beta Was this translation helpful? Give feedback.
-
For now I just meshed it into my code without a property. I will add a property and do a PR later. |
Beta Was this translation helpful? Give feedback.
-
@wqweto Also, based on the Basic test which works for me. I prepared this little snippet, Though the MsgBox never shows up? Option Explicit
DefObj A-Z
Private Const MODULE_NAME = "Form1"
#Const ImplUseDebugLog = (USE_DEBUG_LOG <> 0)
Private WithEvents m_oSocket As cAsyncSocket
Private WithEvents m_oHttpDownload As cHttpDownload
Private m_dblStartTimerEx As Double
Private m_dblNextTimerEx As Double
Private WithEvents m_oClientSocket As cTlsSocket
Private WithEvents m_oRequest As cHttpRequest
Private m_oRootCa As cTlsSocket
Private Type UcsParsedUrl
Protocol As String
Host As String
Port As Long
Path As String
QueryString As String
Anchor As String
User As String
Pass As String
End Type
Private Sub Command1_Click()
Set m_oHttpDownload = New cHttpDownload
m_oHttpDownload.DownloadFile "https" & "://dl.unicontsoft.com/upload/aaa.zip", Environ$("TMP") & "\aaa.zip"
End Sub
Private Sub m_oHttpDownload_DownloadComplete(ByVal LocalFileName As String)
MsgBox LocalFileName
End Sub |
Beta Was this translation helpful? Give feedback.
-
@wqweto Weird, I can download it from a button click but not from a sub/function? Maybe because of the sync socket stuff going on? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
On
cHttpDownload
, by any chance its possible to ignore cert errors like we do on TLS sockets?Beta Was this translation helpful? Give feedback.
All reactions