use httplib instead requests to test apis