This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi, I am writing a simple ftp client program to download a file from a ftp site. The site requires login and the ftp client is behind a proxy. I did find some sample show you how to do FTP. Also, some show you how to work with proxy. But not both. the following is the codes I use. I got IOException "HTTP response code: 401" if the urlString contains userinfo (ftp://email@example.com/file) But "ftp://ftp.site/file" works fine. I think the problem is the communication between the java program and the proxy server. Could anyone help me?