This class is excellent. Thank you. It did not work at first but by adding breakpoints I traced it to 'curl' not working. Yes, I hadn't installed the curl module! Once installed all was well. If anyone reading here doesn't know how to do that I'll post a comment under the 'MyCurl' class.