Re: fopen - how to get a site with login



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...@xxxxxxxxxxx> wrote:
On Thu, 28 Feb 2008 12:46:57 +0100, Feijó <afe...@xxxxxxxxx> 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

.



Relevant Pages

  • Re: will yast still work?
    ... > Well I saw your previous post and I asked you WHY you were upgrading Curl ?? ... > regarding a SuSE 9.0 rpm, it stands to reason that you should not have used ... > might have tried to install with the '-i' option instead. ... > Then reinstall the original SuSE 8.1 package for your system. ...
    (alt.os.linux.suse)
  • Re: will yast still work?
    ... The solution would be to compile and install CURL ... >>into a local directory and use it from there, or do a complete upgrade of ... > do an FTP install. ...
    (alt.os.linux.suse)
  • Re: will yast still work?
    ... Well I saw your previous post and I asked you WHY you were upgrading Curl ?? ... the 'U' option to rpm. ... might have tried to install with the '-i' option instead. ... Then reinstall the original SuSE 8.1 package for your system. ...
    (alt.os.linux.suse)
  • Re: 2nd try: anybody familiar with php4-curl?
    ... Miles Fidelman wrote: ... I'm trying to install a package that requires curl support, ...
    (Debian-User)
  • Re: php4 extensions
    ... When I run php4-extensions, ... How to I reconfigure it to load the GUI so I can install curl? ... (in 'make config') ...
    (freebsd-questions)