简体   繁体   中英

Disable Javascript in Curl Request (PHP)

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

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

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

Thanks.

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

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM