Re: header WWW-Authenticate Question
| From: | Richard Lynch | Date: | Thu, 26 Jan 2006 20:29:44 +0000 |
| Subject: | Re: header WWW-Authenticate Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-229334@lists.php.net to get a copy of this message | ||
On Thu, January 26, 2006 1:02 pm, News1 wrote:
> I am trying to send username/password credentials to a web server
> using a
> PHP script. This is done to automatically log into a web camera from
> my
> workstation. I don't know if the header www-authenticate option is
> the
> correct one (or if it's even possible) to use for this.
I think www-authenticate is what the server sends to the browser, not
the other way around.
I'm guessing that since it's called PHP_AUTH_USER and PHP_AUTH_PW in
PHP, that you would need to send:
GET / HTTP/1.0
AUTH_USER: $username
PATH_PW: $password
Host: example.com
You may also want to look into:
http://php.net/curl
--
Like Music?
http://l-i-e.com/artists.htm