This is a discussion on fopen - how to get a site with login within the PHP Language forums, part of the PHP Programming Forums category; I need to get some pages from a site that request user and passw Probably they use cookies How can ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On Thu, 28 Feb 2008 12:46:57 +0100, Feijó <afeijo@gmail.com> wrote:
> I need to get some pages from a site that request user and passw > > Probably they use cookies > > How can I do that? CURL is your friend: http://nl2.php.net/curl Especially read about the options set with curl_setopt() If CURL isn't installed at your server, you'll either have to write your own lofic using fsockopen(), and manually write & read (/interpret) headers, or use one of the http client classes out there, for instance the PEAR one: <http://pear.php.net/package/HTTP_Client> -- Rik Wasmus |
|
|||
|
Thanks Rik !
I'm building that on my own computer, with WinXP and Apache 2.2. I'm sure if I dont have CURL, I can install it I get back to the list if I enconter problems. regards Feijo On Feb 28, 9:05 am, "Rik Wasmus" <luiheidsgoe...@hotmail.com> wrote: > On Thu, 28 Feb 2008 12:46:57 +0100, Feijó <afe...@gmail.com> wrote: > > I need to get some pages from a site that request user and passw > > > Probably they use cookies > > > How can I do that? > > CURL is your friend:http://nl2.php.net/curl > Especially read about the options set with curl_setopt() > > If CURL isn't installed at your server, you'll either have to write your > own lofic using fsockopen(), and manually write & read (/interpret) > headers, or use one of the http client classes out there, for instance the > PEAR one: <http://pear.php.net/package/HTTP_Client> > -- > Rik Wasmus |