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 <[EMAIL PROTECTED]>
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
> [EMAIL PROTECTED]
> 800-994-6364
> www.webintellects.com
> --------------------------------------------
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]