Re: Any idea how to automatically post to http authentication?
| From: | Greg Donald | Date: | Tue, 21 Sep 2004 19:35:01 +0000 |
| Subject: | Re: Any idea how to automatically post to http authentication? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-197467@lists.php.net to get a copy of this message | ||
On Tue, 21 Sep 2004 14:24:08 -0500, j kensler <j.kensler@gmail.com> wrote:
> I'm trying to create a php page that automatically posts data to
> several other webpages (to log in). However one of the pages is using
> some sort of CGI HTTP authentication. Is there any way that I can see
> what the names of the fields are (such as user or username or
> whatever). And also is there any way that I can post the data that the
> HTTP authentication needs via PHP?
I don't know if you have looked there yet, but PEAR seems to have
quite a few HTTP packages:
http://pear.php.net/packages.php?catpid=11&catname=HTTP
Also, you might try curl:
http://pear.php.net/package/Net_Curl
--
Greg Donald
http://gdconsultants.com/
http://destiney.com/