How To Use The DownloadData
Nov 14, 2011
I've got some simple code to download a web page :-
Code:
Shared Function Download(ByVal URL As String) As Byte()
Try
Dim fileReader As New WebClient()
Dim P As New WebProxy("http://proxy01:8081")
[code]....
The problem is that the page doesn't download in full although there are no errors to go on. If I do view source on the page in IE the file size is over 100k. If I download the page using the code above it is only 11k. The only thing I can think of is that the page uses frames and the code is only downloading one of them.
View 3 Replies
Feb 12, 2010
How do you check if webclient.downloaddata is working? I mean what if the site you are trying to access suddenly turns down. How do you avoid getting an error? Below is an example
Dim webclient As New WebClient
Dim eIP As String
eIP =
[Code].....
View 1 Replies
Nov 18, 2010
I have been prototyping a simple site search tool.I found some online references to using webclient.download data. I have a (mostly) working prototype, but it only returns static HTML on the page that is being searched.I also would like to be able to search the contents of controls (such as text in label controls that are set at run time.) In the code below, the data in label1 is not returned.[code].....
View 3 Replies