Using the following code:
Try
Dim fileToDownload As String = "miArchivo"
Dim downloadPath As String = Directory.GetCurrentDirectory() & "\data\downloads\"
Dim currDate = DateTime.Now.ToString("dd-MM-yyyy HH.mm.ss").ToString
Dim downloadedFileName As String = "miArchivoDescargado" & currDate & ".xml"
Dim downloadString = downloadPath & downloadedFileName
My.Computer.Network.DownloadFile(fileToDownload, downloadString, "a", "b", True, 2500, True)
Return True
Catch ex As Exception
MsgBox("No se ha podido descargar la información desde la web debido al siguiente error: " & ex.Message)
Return False
End Try
I can easily download a file hosted on the specified path as long as I do not use the secure connection, that is, https.
When trying to download using httpS, the following error appears: "The connection is terminated, unexpected sending error."
How is the secure connection valid using "DownloadFile"?