title: PHP - cURL post to website -> emulate browser (to do javascript) -> return html result
body: <p>I was wondering if it is possible (well anything is possible) to use cURL post to website (simulate a login) then to emulate browser (to allow javascript to process the login) then return html result after said script has run?</p>
  
  <p>Here is a process tree.</p>
  
  <p>cUrl -> login.php
             -> emulate browser to run javascript -> return html</p>