page scrape redirects

marcouillo

New Member
I'm doing a page scrapes and I'm having troubles with redirect pages. I'm sure I could solve my problem with the webresponse.responseUri property but I have no clue how to get it to work. Could someone please clue me in. my code is as follows:<BR><BR><BR> Dim objWebClient as New WebClient()<BR> <BR> Dim aRequestedHTML() as Byte<BR><BR> aRequestedHTML = objWebClient.DownloadData(xmlhttpurl)<BR> <BR> Dim objUTF8 as New UTF8Encoding()<BR> Dim strRequestedHTML as String<BR> strRequestedHTML = objUTF8.GetString(aRequestedHTML)<BR> <BR><BR> lblHTMLOutput.Text = strRequestedHTML.
 
Back
Top