🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #3119

Re: Help with FTP

#3119
From: Andrew Bennett [ Inprise ]
Date: Wed, 13 May 1998 00:00
31 lines
1532 bytes
Binh Tran wrote:
> 
> 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?


The URL class doesn't handle ftp based connections.  Just http.


Andrew
--
  Andrew Bennett
  abennett@inprise.com

  Due to my workload, personal email more than likely won't get a reply.
  Support options are detailed at http://www.inprise.com/devsupport/
  I am unable to answer support questions via email at this time.

  Check http://www.inrpise.com/devsupport/jbuilder/ for FAQs and
  additional JBuilder support related help.
Technical Details
Message-ID: <355A1B23.8D68C713@inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3557AD18.122C4955@usa.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,ac2049dbea8ea39f
X-Google-Attributes: gidf74b3,public
X-Google-Thread: 1089d0,ac2049dbea8ea39f
X-Google-Attributes: gid1089d0,public
From: "Andrew Bennett [ Inprise ]" <abennett@inprise.com>
Subject: Re: Help with FTP
Date: 1998/05/13
Message-ID: <355A1B23.8D68C713@inprise.com>
X-Deja-AN: 353009802
Content-Transfer-Encoding: 7bit
References: <3557AD18.122C4955@usa.net>
Content-Type: text/plain; charset=us-ascii
Organization: Borland JBuilder -- http://www.inprise.com/jbuilder/
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.api,borland.public.jbuilder.java.language