URLConnection with FTP protocol
Ito Kazumitsu
kaffe@rufus.w3.org
Thu, 26 Apr 2001 16:10:28 +0900
In message "URLConnection with FTP protocol"
on 01/04/26, Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp> writes:
> which enable URLConnection with FTP protocol to work
> if system properties ftp.proxyHost and ftp.proxyPort
> are set.
> + if ((url.getProtocol()).equals("ftp")) {
> + proxyHost = System.getProperty("ftp.proxyHost");
> + useProxy = true;
> + proxyPort = Integer.parseInt(pp);
One thing I am worried about is that proxyHost, useProxy
and proxyPort are static. Changing their values may
cause some trouble.