manage API v1 to API v2 in http, fix #110