Re: using PHP script to simulate a login

From: Date: Sat, 17 Jul 2004 01:23:46 +0000
Subject: Re: using PHP script to simulate a login
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-190795@lists.php.net to get a copy of this message
On Fri, 16 Jul 2004 20:38:22 -0400, Alex Shi <chpshi@stonix.com> wrote: > > On Fri, 16 Jul 2004 19:23:30 -0400, Alex Shi <chpshi@stonix.com> wrote: > > > Hi, > > > > > > We have a web interface to do following: > > > 1. login > > > 2. check phone number (maybe thousands of) > > > 3. logout. > > > > > > I am just wondering is it possible to use a php script to simulate > > > the three steps? I understand that after login the web server will > > > send a cookie to browser, so in that way a session can be kept > > > at the visiter's end in correspondance to the web server. However > > > I have no idea is it possible for a script to simulate browser's > > > session handling? > > > > > > > Yep. > > http://pear.php.net/package/HTTP_Client > > > Thanks! > I downloaded the package and all its required dependencies. > But I'm still wondering that is it required to install pear to run > all these packages? We have PHP 4.3.0 and PHP 4.3.2. > Thanks in advance! > Well, PEAR is generally installed with PHP. Try running: pear install HTTP_Client on the command-line. Also: pear upgrade-all You don't *have* to "install" PEAR, you can just put everything in the right directories manually. I do that at work. It's a pain.... -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin--

« previous php.general (#190795) next »