I'm working with a few pages where javascript executes form submission on page load.
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.
Here's my currentcode:
$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);