Page 1 of 1

Alternative to cURL

Posted: Mon Jun 05, 2006 1:08 pm
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

Posted: Mon Jun 05, 2006 1:23 pm
by feyd
Snoopy. SimpleTest has a browser emulator too.

Or you could write your own with fsockopen()

Posted: Mon Jun 05, 2006 1:25 pm
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.

Posted: Mon Jun 05, 2006 2:07 pm
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