3

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

4
  • 3
    I recommend to you phantomjs.org/index.html Commented Mar 17, 2013 at 19:40
  • Before phantomjs i used V8 php extension but its more difficult than phantom Commented Mar 17, 2013 at 19:41
  • It's duplicate post:http://stackoverflow.com/questions/3008817 Commented Mar 17, 2013 at 19:43
  • 1
    Hows it a duplicate, im asking about the javascript portion Commented Mar 17, 2013 at 20:29

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.