Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP - cURL post to website -> emulate browser (to do javascript) -> return html result

I was wondering if it is possible (well anything is possible) to use cURL post to website (simulate a login) then to emulate browser (to allow javascript to process the login) then return html result after said script has run?

Here is a process tree.

cUrl -> login.php -> emulate browser to run javascript -> return html

like image 587
Rutger Kappers Avatar asked Jun 16 '26 00:06

Rutger Kappers


1 Answers

phantomjs.org/index.html did what I needed to do, thanks for the suggestions :)

like image 160
Rutger Kappers Avatar answered Jun 17 '26 14:06

Rutger Kappers