基本上我想这样做(Python),但在Haskell:
import requests
from requests_kerberos import HTTPKerberosAuth, OPTIONAL
kerberos_auth = HTTPKerberosAuth(mutual_authentication=OPTIONAL)
r = requests.get("http://example.org", auth=kerberos_auth)
我知道I can just do:
import Network.Wreq
r <- get "http://httpbin.org/get"
但我无法找到支持kerberos谈判的例子