see FTPHTTPClient.tunnelHandshake
current code is:
if (proxyUsername != null && proxyPassword != null) {
final String auth = proxyUsername + ":" + proxyPassword;
final String header = "Proxy-Authorization: Basic " +
Base64.getEncoder().encodeToString(auth.getBytes(charset));
output.write(header.getBytes(charset));
}
correct code is:
if (proxyUsername != null && proxyPassword != null) {
final String auth = proxyUsername + ":" + proxyPassword;
final String header = "Proxy-Authorization: Basic " +
Base64.getEncoder().encodeToString(auth.getBytes(charset));
output.write(header.getBytes(charset));
*output.write(CRLF);*
}