G
Guest
I tried to develop an application to download a file from an Https server.
My application was able to download a file from a regural Http server.
I used a WebProxy and i passed the NetworkCredential, but also it didn't
work like:-
Dim myProxy As New WebProxy("https://TheServername.com/", 443)
Also I used that way to create a class to accept all kinds of
certifications, and also it didn't work.
Public Class acceptAllCerts
Implements System.Net.ICertificatePolicy
Public Function CheckValidationResult(ByVal srvPoint As ServicePoint, _
ByVal cert As X509Certificate, ByVal request As WebRequest, ByVal
problem As Integer) _
As Boolean Implements ICertificatePolicy.CheckValidationResult
Return True
End Function
End Class
The message I am receiving is "The ServicePointManager does not support
proxies of https scheme."
Does anyone have any idea how to solve this?
Does anyone have any valid script to download a file from a secured Https
server?
My application was able to download a file from a regural Http server.
I used a WebProxy and i passed the NetworkCredential, but also it didn't
work like:-
Dim myProxy As New WebProxy("https://TheServername.com/", 443)
Also I used that way to create a class to accept all kinds of
certifications, and also it didn't work.
Public Class acceptAllCerts
Implements System.Net.ICertificatePolicy
Public Function CheckValidationResult(ByVal srvPoint As ServicePoint, _
ByVal cert As X509Certificate, ByVal request As WebRequest, ByVal
problem As Integer) _
As Boolean Implements ICertificatePolicy.CheckValidationResult
Return True
End Function
End Class
The message I am receiving is "The ServicePointManager does not support
proxies of https scheme."
Does anyone have any idea how to solve this?
Does anyone have any valid script to download a file from a secured Https
server?