added curl debugging options to bmc_xml function, #2