PHP 有 HtmlUnit 端口吗?
Java 库 HtmlUnit 允许您请求给定 url 的内容(据我所知,它也会执行将在该页面的加载事件上执行的 javascript)。我正在寻找同样的功能,但在 PHP 中。
我试图解决的问题是,我正在尝试将curl/wget/get_file_contents发送到一个url,该url有一些在页面加载时运行的javascript...这个javascript没有使用我正在执行的方法执行使用...并且我想使用可以实现“get”并另外执行该页面的javascript的东西...所以我的“get”结果将是初始javascript执行后的html标记。
谢谢
The Java library HtmlUnit allows you to request a given url's content (and I'm told it will also execute the javascript that would execute on that page's load event). I'm looking for this same functionality but within PHP.
The problem that I'm trying to solve is that I'm attempting a curl/wget/get_file_contents to a url that has a bit of javascript that run on page load...this javascript is not executing with the methods that I'm using...and I'd like to use something that can achieve the "get" and additionally execute that page's javascript...so my result from the "get" would be the html markup after the initial javascript has executed.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我用谷歌搜索了一下但找不到端口。例如此链接告诉没有可用的端口。
也许PHPUnit 与 Selenium RC?
I googled a bit but could not find a port. For example this link tells that no port is available.
Maybe PHPUnit with Selenium RC?