Repository navigation
Is it possible to ignore cert errors on HTTP downloads? #68
gaouservbf
started this conversation in
General
Replies: 4 comments 3 replies
|
It's possible to add an Send a PR if you feel like implementing it. |
1 reply
|
For now I just meshed it into my code without a property. I will add a property and do a PR later. |
0 replies
|
@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 |
2 replies
|
@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? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?All reactions