How to automatically get a page that need to log in first
How to get the data from a page say "http://www.example.com/data.php", which requires user login first through php?
I can view this page throw browser, after log in through, say "http://www.example.com/action_login.php".
I was told that:
first: send a Post request to action_login.php with my username and password, then I will get the cookies in the response.
then: send a request to data.php with cookies.
I don't know how to achieve that.