在Python中我使用了这样的请求:
requests.put(
webdavURL,
auth=(tUsername, tPassword),
data=webdavFpb,
verify=False,
cert=("/path/to/file.pem", "/path/to/file.key"))
Run Code Online (Sandbox Code Playgroud)
非常简单.
现在我需要使用Apache HttpClient在Java中实现相同的功能.在使用HttpClient发出请求时如何传递客户端证书?