No need to provide ProxyAuthenticationStrategy in httpClient 5.x . Simply providing the credentials through CredentialsProvider will automatically handle proxy authentication without specifying a separate strategy.