3.8 library(http/http_digest): HTTP Digest authentication
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog HTTP support
        • The HTTP server libraries
          • library(http/http_digest): HTTP Digest authentication
            • http_digest_challenge//2
            • http_parse_digest_challenge/2
            • http_digest_response/5
            • http_digest_password_hash/4
            • authenticate/3
            • authenticate_client/2
[semidet,multifile]http:authenticate_client(+URL, +Action)
This hooks is called by http_open/3 with the following Action value:
send_auth_header(+AuthData, +Out, +Options)
Called when sending the initial request. AuthData contains the value for the http_open/3 option authorization(AuthData) and Out is a stream on which to write additional HTTP headers.
auth_reponse(+Headers, +OptionsIn, -Options)
Called if the server replies with a 401 code, challenging the client. Our implementation adds a request_header(authorization=Digest) header to Options, causing http_open/3 to retry the request with the additional option.