...

View Full Version : How to automatically get a page that need to log in first



cdzhang
04-11-2012, 07:14 AM
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.

mlseim
04-11-2012, 02:26 PM
A lot of questions come to mind, for your post ...

Will this be for one username and password, or several users?
How are you managing those usernames and passwords?
Are you using MySQL for a user database?

You need to step back a few squares and fill us in with what you current have in place.
How you know what the usernames and passwords are will create different solutions.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum