2021-01-06, 13:58
(2021-01-06, 00:43)DanCooper Wrote:OK, report back after you have tried.(2021-01-06, 00:28)ralfonat Wrote:VisualStudio 2017, no proxy, vlan or something else. Tommorow I will try the same 2 lines of code at my office. If it will work there than I'm going wild(2021-01-03, 03:54)DanCooper Wrote: Ok, more issues incoming...Hrm, what are you using? Visual Studio 201x? or VS Code?
I can't get the WebClient connecting to the website inside VisualStudio. The connection will be closed every time. It works online, but not in VS. Any idea? I tried it with this simple code in vb.NET 4.5.0:
vb:Dim wc As WebClient = New WebClient()
Dim srchHtml As String = wc.DownloadString("https://www.videobuster.de/titlesearch.php?search_title=die+croods")
Are you using a proxy of any sort that might interfere?
Other than that this might be of help:
https://stackoverflow.com/questions/1404...-webclient
https://www.telerik.com/fiddler
Thanks for the links, will read it also tomorrow.
You could also try this snippet using the newer HttpClient rather than the WebClient. It uses the new async paradigm...
https://dotnetfiddle.net/u05WMn