:- use_module(library(http/http_authenticate)).
[semidet]http_authorization_data(+AuthorizeText,
?Data)Authorization header. Data is a
term
Method(User, Password)
where Method is the (downcased) authorization method (typically
basic), User is an atom holding the user name and Password
is a list of codes holding the password