title: How do I parse text data from url?
body: <p>We are using the following code to try to parse some text data from the URL 
  below: </p>
  
  <pre><code>Dim strURL As String = " http://pictures.sprintpcs.com/share.do?invite=VEL42hPQY
  Yk34YgLaQPo&amp;shareName=MMS&amp;messageState=RETRIEVED" 
  
  ' *** Establish the request 
  Dim loHttp As HttpWebRequest = DirectCast(WebRequest.Create(strURL), HttpWebRequest) 
  
  ' *** Set properties 
  loHttp.Timeout = 10000 
  ' 10 secs 
  loHttp.UserAgent = "Code Sample Web Client" 
  
  ' *** Retrieve request info headers 
  Dim loWebResponse As HttpWebResponse =  DirectCast(loHttp.GetResponse(), HttpWebResponse) 
  
  Dim enc As Encoding = Encoding.GetEncoding(1252) 
  ' Windows default Code Page 
  Dim loResponseStream As New StreamReader(loWebResponse.GetResponseStream(), enc) 
  
  Dim lcHtml As String = loResponseStream.ReadToEnd() 
  
  loWebResponse.Close() 
  loResponseStream.Close() 
  
  LogResponseStream.WriteLine(lcHtml) 
  </code></pre>
  
  <p>The problem is that the response we are getting in code is incomplete when 
  compared with what actually renders in the browser.  The html we are getting 
  shows a javascript function in the body of html where what we really want is the 
  result of the function, which includes the data we need to capture.  This is 
  confirmed by loading the page in Google Chrome, clicking on the text "100360" 
  and choosing "inspect element" which allows us to see the full page response 
  with the data we need, specifically the following line: </p>
  
  <pre><code>&lt;pre class="pre-longText-wrap"&gt;100360&lt;/pre&gt; 
  </code></pre>
  
  <p>Can anyone help us figure out how to get this "raw" page response?  It may be 
  that the script is taking a few seconds to respond and that we are only seeing 
  the initial page response.  Thank you in advance for your input. </p>