Hi satabeach,
'Add this three lines of code.
C#
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;
ServicePointManager.DefaultConnectionLimit = 9999;
VB.Net
ServicePointManager.Expect100Continue = True
ServicePointManager.SecurityProtocol = DirectCast(3072, SecurityProtocolType)
ServicePointManager.DefaultConnectionLimit = 9999
Refer below modified code.
Dim SmsStatusMsg As String = String.Empty
Try
Dim client As WebClient = New WebClient()
Dim url As String = "https://rest.nexmo.com/sms/xml?api_key=18c03652&api_secret=7Y3hqMnTF4EuE2HE&from=UCPH&to=9607908122&text=D%c3%a9j%c3%a0+vu"
ServicePointManager.Expect100Continue = True
ServicePointManager.SecurityProtocol = DirectCast(3072, SecurityProtocolType) 'its same like SecurityProtocolType.Tls12
ServicePointManager.DefaultConnectionLimit = 9999
SmsStatusMsg = client.DownloadString(url)
'MessageBox.Show("Status: " & client.SelectSingleNode("/response/status/status_msg").InnerText)
Catch ex As Exception
Response.Write(ex.Message + " " + ex.StackTrace)
End Try