[cli] use urllib2 instead of curl