How can a PHP script complete a login form to enter the members area (I have a username and password), such that it can send POST data to complete another form only accessible if logged in?
A:
I'm not sure exactly what you are trying to do but I suggest checking out webrat if you are attempting to test a site. http://github.com/brynary/webrat
Hope that helps, David.
David
2009-11-11 05:59:50
+2
A:
You can use curl to POST to any url. You will have to use the cookie options to be able to stay logged in.
Here's a video tutorial http://scriptasy.com/php_11/tutorial-curl-login_44.html
Dont use livehttpheaders. use httpfox, its a lot better.
Galen
2009-11-11 06:06:42