rename SetAgent and ToXML
update testcase for httplib