httpBasic 认证的URL访问

httpBasic 认证

要在发送请求的时候添加HTTP Basic Authentication认证信息到请求中,有两种方法:

1.在请求头中添加Authorization: Authorization: "Basic 用户名和密码的base64加密字符串"

在url中添加用户名和密码: http://userName:[email protected]/statuses/friends_timeline.xml

猜你喜欢

转载自www.cnblogs.com/quartz/p/11961323.html