Domains and gateway tweaks for xml_curl