This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes FTP behind proxy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "FTP behind proxy" Watch "FTP behind proxy" New topic

FTP behind proxy

Alex Ku
Ranch Hand

Joined: Jan 15, 2002
Posts: 47
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://user
But "" works fine.
I think the problem is the communication between the java program and the proxy server. Could anyone help me?

I agree. Here's the link:
subject: FTP behind proxy
It's not a secret anymore!