I'm having a problem connecting to my FTP server using a proxy and TLS. I am able to connect with no problems on my home computer which does not use a proxy however when I try to connect at work I get the following (I changed some of the numbers and words for privacy):
Resolving 61.123.12.123, via proxy (gate.proxy.com)...  
Connect socket #1032 to 123.12.12.33, port 21 (to 21)...
220-This is the FTP proxy service.  
220-Access by unauthorized users is prohibited.  
220-All transfers through this proxy are logged.  
220-When prompted for username, enter ``RemoteUsername@RemoteHost''.  
220-This is the FTP proxy service.  
AUTH TLS  
551 Userid nonexistent  
USER name@61.123.12.123  
504-(----GATEWAY CONNECTED TO 61.123.12.123----)  
504-(220 Station FTP server ready.)  
504 TLS/SSL protection required.  
It seems that the problem is that "AUTH TLS" is being sent before the connection to the FTP server has been established. I am using UserId=user@hostname for my proxy setting. Is there away to delay the sending of "AUTH TLS" until after connecting to the FTP server?