Y
Y
ywitodenasuby2018-04-07 18:25:01
C++ / C#
ywitodenasuby, 2018-04-07 18:25:01

Error - Request was aborted: Failed to create SSL/TLS c# secure channel?

Hi all. Tell me, please, what to do. I want to programmatically (C#) download a sitemap from https://www.ralphlauren.com/sitemap_0.xml, but I get an error.

xml = client.DownloadString("https://www.ralphlauren.com/sitemap_0.xml");

Exception thrown: 'System.Net.WebException' in System.dll ("Запрос был прерван: Не удалось создать защищенный канал SSL/TLS.")

I registered in php in curle and everything works like clockwork, but how can I do it in C # or what should I do?
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Yudakov, 2018-04-07
@AlexanderYudakov

https://msdn.microsoft.com/en-us/library/system.ne...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question