在Curl Request(PHP)中禁用Javascript [英] Disable Javascript in Curl Request (PHP)

查看:64
本文介绍了在Curl Request(PHP)中禁用Javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以禁用PHP中的Curl请求中的Javascript?

Is there a way to disable Javascript in a Curl request in PHP ?

尝试模仿浏览器请求(来自禁用Javascript的浏览器)

Trying to mimic a browser request (from a browser with Javascript disabled)

这可以通过标题/用户代理/cookie完成吗?

Could this be done via a header/user agent/cookie ?

谢谢.

推荐答案

有没有一种方法可以禁用PHP中的Curl请求中的Javascript?

Is there a way to disable Javascript in a Curl request in PHP ?

是的,有:只需保留所有内容即可.:)

Yes, there is: Simply leave everything as it is. :)

Curl无法解释Javascript.实际上,最大的挑战是建立 do 解释Javascript的基于curl的自动化客户端.

Curl will not interpret Javascript. Actually, the big challenge is to build automated, curl-based clients that do interpret Javascript.

这篇关于在Curl Request(PHP)中禁用Javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆