http报错之return error code:401 unauthorized 依据HTTP返回码所表示的意思应该是未授权,没有输入账号和password,因此解决方法就直接在HTTP包里面携带password. 先利用shell产生user and password 的base64编码 将账号为admin,password为admin的信息经base64编码为YWRtaW46YWRtaW4=. $ echo -n admin:admin | base64 YWRtaW46YWRtaW…