I'm using below code to get the first Length bytes of the web page. Now, I want to skip the first 50K bytes, and get the following 50K bytes. Is there a way to do that? Or I have to read the first 100K bytes? The first 50K bytes are useless to me and it slows down the program.

thank you very much.

VB Code:
  1. Try
  2.             Dim webReq As HttpWebRequest = DirectCast( _
  3.                     WebRequest.Create(strURL), HttpWebRequest)
  4.             ' Set a 30-second timeout.
  5.             webReq.Timeout = 30000      ' 30 seconds
  6.             webReq.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
  7.             webReq.KeepAlive = False        ' turn off persistent connections
  8.             webReq.Accept = "text/html, text/xml"
  9.             webReq.ReadWriteTimeout = 30000
  10.  
  11.             Dim webResp As HttpWebResponse = DirectCast( _
  12.                                     webReq.GetResponse, HttpWebResponse)
  13.  
  14.             Dim sr As New StreamReader(webResp.GetResponseStream, Encoding.ASCII)  
  15.  
  16.             Dim lngLength As Long = Length
  17.            
  18.             Dim chrBlock() As Char
  19.             ReDim chrBlock(lngLength * 1024)
  20.             sr.ReadBlock(chrBlock, 0, lngLength * 1024)
  21.             html = CType(chrBlock, String).Trim
  22.  
  23.                      ' always close
  24.             sr.Close()
  25.             sr = Nothing
  26.  
  27.         Catch ex As WebException
  28.             html = ""
  29.         End Try