Alternative to cURL

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mzfp2
Forum Contributor
Posts: 137
Joined: Mon Nov 11, 2002 9:44 am
Location: UK
Contact:

Alternative to cURL

Post by mzfp2 »

Hi,

My host unfortunately does not have cURL installed on their servers, and thhey dont seem to keen on chnaging that any time soon. However I need cURL support desperately, and don't want to have to go through the nightmare of changing hosts and transferring domains.

I was wondering if anyone is aware of any custom written classes that offer a good alternative to cURL?

Many Thanks
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Snoopy. SimpleTest has a browser emulator too.

Or you could write your own with fsockopen()
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

You could probably put something together with fopen() or fsockopen(), fputs(), and fgets(). If you only need to get data then you could use file() or file_get_contents(). However, all of those depend on your host allowing HTTP with streams.
(#10850)
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

I would use the simpletest browser as it's already done...

you can find out more info here:

http://www.lastcraft.com/browser_documentation.php
Post Reply