Re: Make Script login to password protected web sites

From: Date: Sat, 24 Mar 2001 01:21:41 +0000
Subject: Re: Make Script login to password protected web sites
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-45388@lists.php.net to get a copy of this message
If you are attempting to connect to a site that uses HTTP Authentication (that popup window), I *THINK* you can use: username:password@http://whatever.com If you need to get to/through a web-page with a FORM in it, dig out Rasmus' posttohost() function and use that to send the username/password to the login URL, and then see what you get back from that page that makes you a "valid" user from then on. You may need to re-present an ID or something as part of each GET/POST from then on. This kind of stuff *can* be done, but it's usually quite a headache the first time to figure out what has to go between the servers. Oh. If it's an https:// connection, you need to use cURL. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: Brandon Orther <orther@webintellects.com> Newsgroups: php.general Sent: Thursday, March 22, 2001 12:25 PM Subject: [PHP] Make Script login to password protected web sites > Hello, > > Can I put the user name and password at the top of my php script so it can > loggin to a site that requires authentication? > > Can i put it anywhere in teh script to amek it do this? > > Thank you, > > -------------------------------------------- > Brandon Orther > WebIntellects Design/Development Manager > brandon@webintellects.com > 800-994-6364 > www.webintellects.com > -------------------------------------------- > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#45388) next »