rename SetAgent and ToXML
update testcase for httplib
Merge pull request #749 from smallfish/master

rename SetAgent and ToXML, and update some testcase
Merge branch 'master' into develop
comments for godocs