[horde] Using curl wrappers instead of fopen
Jan Schneider
jan at horde.org
Tue Jan 21 08:50:42 PST 2003
Zitat von Daniel Reich <me at danielreich.com>:
> I'd like to offer up an alternative to using fopen. Granted curl is yet
> another module to install, but I think it'd be useful. I wrote a quick
> function that uses curl to grab a URL via proxy (authenticated too).
>
> I thought this could go into the Horde library. And if this is ok, I'd
> like to write another function which will act as a wrapper so that if
> you have curl extensions installed it will use curl, otherwise it will
> use fopen. Other horde modules could utilize this to pull down lots of
> URLs (ie Jonah). I should probably extend this to handle cookies in
> some fashion too now that I'm looking back...
You should take a look at Snoopy.php in horde/lib. IIRC it currently uses
the curl command line interface but it probably can be extended to use the
extension if available.
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft
More information about the horde
mailing list