title: iPhone SDK: control websites in UIWebView programmatically
body: <p>I need to control a website that is loaded into a UIWebView like sending post data and using get requests. After each request the response should be loaded as a string into a variable.</p>
  
  <p>The reason for this is that I'm trying to fetch data from a website that has no public web api and using cookie based user authentication. So I want to login the user, fetch some data from that site and present the results.</p>
  
  <p>Is something like this posible?</p>
  
  <p><strong>EDIT:</strong> I just came across the method <em>stringByEvaluatingJavaScriptFromString</em>. Would it be posible to use this method to control the content within the UIWebView with JS? Like submitting a web form and wait for the page to finish loading and getting the response data?</p>
  
  <p><strong>EDIT 2</strong>: Just found a framework that might be helpful <a href="http://allseeing-i.com/ASIHTTPRequest/" rel="nofollow noreferrer">ASIHTTPRequest</a></p>