问题
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
来源:https://stackoverflow.com/questions/56057748/webclient-downloadstring-being-blocked-by-some-websites-and-responds-back-as-det