Re: Having my script login to a secure area of another site.....

From: Date: Fri, 10 Aug 2001 22:24:07 +0000
Subject: Re: Having my script login to a secure area of another site.....
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-62227@lists.php.net to get a copy of this message
Try messing with the query string, and emulate a GET request. For instance $uri = "http://www.somewhere.com/secure.php?username=bob&password=linuxrocks"; $theFile = implode("\n",file($uri)); echo $theFile; can be used to grab a page and output it. Alternatively, you can use readfile(); but I like file(); since it allows you to manipulate the page. On Friday 10 August 2001 12:37, you wrote: > Hello, > > I am making a script that needs to login to a secure area of another > site. To login you use a basic html form. Is there a way to login to > that site and then use sockets to emulate a post from one of the forms > on that site’s secure section? > Thank you, > Brandon Orther

« previous php.general (#62227) next »