Request 身份认证

作者: 落地逃 | 来源:发表于2020-03-12 20:21 被阅读0次

    from requests.auth import HTTPBasicAuth

    from requests.auth import HTTPDigestAuth

    r=requests.get(base_url+'basic_auth/51zxw/8888',auth=HTTPBasicAuth('51zxw','8888'))

    print(r.text)

    r=requests.get(base_url+'digest_auth/auth/zxw/666',auth=HTTPDigestAuth('zxw','666'))

    print(r.text)

    相关文章

      网友评论

        本文标题:Request 身份认证

        本文链接:https://www.haomeiwen.com/subject/zqemdhtx.html