title: Does the curl library execute javascript inside pages?
body: <p>I'm working with a few pages where javascript executes form submission on page load.  </p>
  
  <p>Does the curl library automatically execute javascript in web pages?  If it does, is there a way to return the changed DOM instead of the default one that I'm returning with simple curl code.  </p>
  
  <p>Here's my currentcode:</p>
  
  <pre><code>    $curl_handle=curl_init();
      curl_setopt($curl_handle,CURLOPT_URL,$url);
      $buffer = curl_exec_follow($curl_handle,10);        
      curl_setopt($curl_handle,CURLOPT_HEADER, 0);
      curl_setopt($curl_handle,CURLOPT_FOLLOWLOCATION, 1); 
      $buffer = curl_exec($curl_handle);
  </code></pre>