|
[
Permalink
| « Hide
]
Dongsheng Cai added a comment - 24/Jun/08 05:03 PM
Created a curl class to simplify the use of curl.
A curl wrapper is a good idea.
We had an old library at lib/snoopy (it's a bit old but we use it for things already). Looks like it's obsolete, though someone came up with this: http://blog.adaniels.nl/articles/drop-in-replacement-for-snoopy/ You should have a look at it and see if that would be useful. If not, we should probably migrate all our code to use your new class (or someone's class). Also look into http://framework.zend.com/manual/en/zend.http.html Can you also make sure the curl library is listed as a prerequisite for 2.0 on the environment.xml for install/upgrade? If we already had a curl lib (didn't know we have snoopy already), we should continue to use it, if the plug-in developers need other functionalities, they can include other libs in their plug-ins. I will test the new snoopy, and may do some hack.
Zend_Http is great, I really like the API, it has a Zend_REST and GData libs too, which will can help develop GDocs and the other RESTful plug-ins, but we need to introduce more Zend Framework files to Moodle, is that OK? I found a Easter eggs: womenslib.php A draft repository base class, it can play with box.net now, will be modified with the development of the other sub-tasks.
cURL is a prerequisite in 2.0 now.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||