This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum 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
Register / Login


JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "FTP behind proxy" Watch "FTP behind proxy" New topic
Author

FTP behind proxy

Alex Ku
Ranch Hand

Joined: Jan 15, 2002
Posts: 47
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://user assword@ftp.site/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?

 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: FTP behind proxy
 
Similar Threads
Updation of ProgressBar??
Problem unzipping with ZipInputStream, containing filename with Swedish characters
uncompressing .Z file in Unix
Problem in unzipping a folder using java.util.zip API
Problem in copying JAR file