接口开发中简单的认证方式,username:password 用base64编码后加到http请求HEAD里

参考:http://en.wikipedia.org/wiki/Basic_access_authentication