CURL version

Not sure if you're interested, but I'll implemented this using CURL for people that want to reduce the number of dependencies on PEAR.

The code is quite old at this point, but I saw your recent activity and just thought I'd let you know. 

Thanks,
Rob