curl库是否在页面内执行javascript? [英] Does the curl library execute javascript inside pages?
本文介绍了curl库是否在页面内执行javascript?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用几个页面,JavaScript在页面加载时执行表单提交。
I'm working with a few pages where javascript executes form submission on page load.
curl库是否在网页中自动执行javascript?如果是,是否有一种方法来返回更改的DOM,而不是使用简单的curl代码返回的默认值。
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.
这是我的电码:
$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);
推荐答案
不,它不适用于css样式。
No, it does not. It does not apply css styles either.
这篇关于curl库是否在页面内执行javascript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文