Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

SSL/TLS Secure channel

Hey,

I got an error when I try to download this image...
Code
Dim wc As System.Net.WebClient = New System.Net.WebClient
       ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3
       System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls
       wc.DownloadFile("https://image-gouda.canadiana.ca/iiif/2/oocihm.lac_reel_t18588%2Fdata%2Fsip%2Fdata%2Ffiles%2F0001.jpg/full/!2560,2560/90/default.jpg?token=eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1ODgyMzA0NzgsImRlcml2YXRpdmVGaWxlcyI6Im9vY2lobS5sYWNfcmVlbF90MTg1ODhcXC9kYXRhXFwvc2lwXFwvZGF0YVxcL2ZpbGVzXFwvLitcXC4oanBnfGpwMnx0aWYpIiwiaXNzIjoiQ0FQIiwiZXhwIjoxNTg4MzE2ODc4fQ.i2BBMCOcmjxpWdsuzrrSzmsD4mfGjMpFjx_LQwWXNbY", "C:\Users\Florent\Pictures\page.jpg")
   End Sub

The request was aborted: Could not create SSL/TLS secure channel.

Works good when I try to download this FB image: https://static.xx.fbcdn.net/rsrc.php/v3/...52wtTZ.png 🙄

Can you help me please?

Cheers!
(Apr 30, 2020 12:40 AM)RAF97 Wrote:  Hey,

I got anerror when I try to download this image...
Code
Dim wc As System.Net.WebClient = New System.Net.WebClient
       ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3
       System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls
       wc.DownloadFile("https://image-gouda.canadiana.ca/iiif/2/oocihm.lac_reel_t18588%2Fdata%2Fsip%2Fdata%2Ffiles%2F0001.jpg/full/!2560,2560/90/default.jpg?token=eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1ODgyMzA0NzgsImRlcml2YXRpdmVGaWxlcyI6Im9vY2lobS5sYWNfcmVlbF90MTg1ODhcXC9kYXRhXFwvc2lwXFwvZGF0YVxcL2ZpbGVzXFwvLitcXC4oanBnfGpwMnx0aWYpIiwiaXNzIjoiQ0FQIiwiZXhwIjoxNTg4MzE2ODc4fQ.i2BBMCOcmjxpWdsuzrrSzmsD4mfGjMpFjx_LQwWXNbY", "C:\Users\Florent\Pictures\page.jpg")
   End Sub

The request was aborted: Could not create SSL/TLS secure channel.

Works good when I try to download this FB image: https://static.xx.fbcdn.net/rsrc.php/v3/...52wtTZ.png 🙄

Can you help me please?

Cheers!

Theres an error when i try the url, are you sure the url works fine??
cus you using temp generate link which expire
[Image: bitcoin.png] Be Nice For Once 15hVUVz7xA4kazHdk2BuErENGCskVwjYXP
It was a problem of Visual Studio, the 2010 version doesn't support the protocol tls1.1 and tls1.2.

Thanks.
It was a problem of Visual Studio, the 2010 version doesn't support the protocol tls1.1 and tls1.2.

Thanks.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by evlmonsterSep 5, 2020 02:19 PM 2 199 Sep 5, 2020 02:19 PM
Last Post: Pernat1y
[.NET] by SIM-2362662Mar 20, 2020 06:52 PM 0 120 Mar 20, 2020 06:52 PM
Last Post: SIM-2362662
[C] by primodyMar 1, 2020 10:36 AM 1 162 Mar 1, 2020 10:36 AM
Last Post: morph