in reply to using and debuging www Mechanize

You should check to see if you can do it using the cPanel Xml API first, it should be easier.