title: HttpWebRequest with pages that have dynamically generated html from javascript?
body: <p>This is kind of a two part question.  Is it possible to retrieve data from a page that loads content dynamically through javascript by using WebClient/HttpWebRequest?  </p>
  
  <p>I'd also like to how I would be able to use WebClient/HttpWebRequest to replicate a XMLHttpRequest like you would see executed via javascript.</p>
  
  <p>Edit:
  I captured the headers of the request I am trying to replicate which looks like this:
  <a href="http://www.tagged.com/api/?application_id=user&amp;format=json&amp;session_token=6thk20fhv7d727emgdhfka6034" rel="nofollow">http://www.tagged.com/api/?application_id=user&amp;format=json&amp;session_token=6thk20fhv7d727emgdhfka6034</a></p>
  
  <p>POST /api/?application_id=user&amp;format=json&amp;session_token=6thk20fhv7d727emgdhfka6034 HTTP/1.1
  Host: www.tagged.com</p>
  
  <p>Accept: text/html,application/xhtml+xml,application/xml;q=0.9,<em>/</em>;q=0.8
  Accept-Language: en-us,en;q=0.5</p>
  
  <p>Accept-Encoding: gzip,deflate</p>
  
  <p>Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7</p>
  
  <p>X-Requested-With: XMLHttpRequest</p>
  
  <p>Content-Type: application/x-www-form-urlencoded; charset=UTF-8</p>
  
  <p>Content-Length: 88</p>
  
  <p>connect_status=-1; __utmb=50703532.0.10.1303366930</p>
  
  <p>DNT: 1</p>
  
  <p>Connection: keep-alive</p>
  
  <p>Pragma: no-cache</p>
  
  <p>Cache-Control: no-cache</p>
  
  <p>method=tagged.usermgmt.addFriend&amp;uid_to_add=5402501977&amp;api_signature=&amp;track=1mJ0lY7-W3</p>
  
  <p>I understand everything up until the method.  As far as I know you can only supply GET or POST to HttpWebRequest.Method.  Could someone maybe fill in the blanks for me?</p>