Valleriani Posted June 16, 2007 Share Posted June 16, 2007 I have a login/pass to a website, basiclly looks here: http://www.exclusivepath.com/login.aspx ... Generally what I do is login, and then backup the specific file in a excel sheet. I do this everyday, once a day. What I wanted was a script that grabs that automatically. It would be easy except for the login part. I'm not sure how I can make it fill in those fields first, hit Login, and wait until thats complete to continue. Does anyone have any suggestions or scripts that may do this? I'm just more or less looking for a way/idea to login automatically, the rest I hopefully can do myself, since it just involves going to the link and saving after your logged in. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/55794-php-auto-login-to-a-website/ Share on other sites More sharing options...
trq Posted June 16, 2007 Share Posted June 16, 2007 Take a look at the curl extension. Quote Link to comment https://forums.phpfreaks.com/topic/55794-php-auto-login-to-a-website/#findComment-275612 Share on other sites More sharing options...
Valleriani Posted June 16, 2007 Author Share Posted June 16, 2007 Thank you very much so far. CURL I see can get the url, but how would it login? I've read a bit about it now but I'm not sure I understand how it can 'fill in' the blanks. Quote Link to comment https://forums.phpfreaks.com/topic/55794-php-auto-login-to-a-website/#findComment-275681 Share on other sites More sharing options...
trq Posted June 16, 2007 Share Posted June 16, 2007 CURL I see can get the url, Curl can do much more than request the url. You can pass parameters, thus making it look like you've sent the login form. There are many HOWTOs on the net if you search. Quote Link to comment https://forums.phpfreaks.com/topic/55794-php-auto-login-to-a-website/#findComment-275684 Share on other sites More sharing options...
redarrow Posted June 16, 2007 Share Posted June 16, 2007 http://www.phpit.net/article/using-curl-php/ http://uk2.php.net/curl Quote Link to comment https://forums.phpfreaks.com/topic/55794-php-auto-login-to-a-website/#findComment-275730 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.