How would one change your script to send an XML file; your code seems to be building the http_post code
Any help will be appreciated

By the way a grat write up..