Article View: borland.public.jbuilder.java.api
Article #3115Help with FTP
From: Binh Tran
Date: Tue, 12 May 1998 00:00
Date: Tue, 12 May 1998 00:00
17 lines
982 bytes
982 bytes
Hi All
I'm have problems figuring out how to FTP to and download a file. My
problem is I can download a public file but not a private file even with
the proper username and password.
The code is as follows:
URL url = new URL("ftp", "hostname", "filename");
url.openConnection();
Can someone shows me where I would put in the username and password?
Please help.
Binh.
Technical Details
Message-ID:
<3557AD18.122C4955@usa.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,ac2049dbea8ea39f,start X-Google-Attributes: gid1089d0,public X-Google-Thread: f74b3,ac2049dbea8ea39f,start X-Google-Attributes: gidf74b3,public From: Binh Tran <jetball@usa.net> Subject: Help with FTP Date: 1998/05/12 Message-ID: <3557AD18.122C4955@usa.net> X-Deja-AN: 352400024 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.api,borland.public.jbuilder.java.language