-->

webClient.DownloadString being blocked by some web

2019-08-20 16:33发布

问题:

I am very new to coding and the code client.DownloadString works on most sites but I have come across a site that seems to block the attempt to load the webpage and returns the same response of blocking the attempt. I was hoping someone can tell me a way around here is the code and the page that won't load

  ServicePointManager.Expect100Continue = True
  ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12
  Dim client = New WebClient()
  TextBox1.Text = client.DownloadString("https://www.somesite.com/samsung-series-9-7-1-4-channel.html")

Any tips would be appreciated