Can a php proxy script call javascript functions like click?

前端 未结 1 1321
有刺的猬
有刺的猬 2021-01-28 15:44

I\'m adding to a PHProxy script to GET a certain page and fills in required forms with cURL and some R.E. This page is usually submitted with a button. I\'m not posting directl

1条回答
  •  孤独总比滥情好
    2021-01-28 16:05

    Solved it myself, sort of.

    You can embed a javascript interpreter into your code like PECL's SpiderMonkey. However, in order to click a button you would need to recreate a DOM from a section of HTML/CSS/Javascript code like a browser does in order to click on of its buttons, and currently there aren't and modules that I can find that do this.

    Referenced Does PHP's HTTP class support javascript?

    0 讨论(0)
提交回复
热议问题