Article View: borland.public.jbuilder.java.language
Article #17233Re: FTP
From: John.B. Spence
Date: Sun, 06 Dec 1998 00:00
Date: Sun, 06 Dec 1998 00:00
46 lines
2020 bytes
2020 bytes
I had the same problem and sought out an FTP class. The one that works
for me
is from IBM AlphaBeans @ http://www.alphaworks.ibm.com/foundry.nsf/
You can download two beans that do all of the work. Also go to the
discussion
group @
http://www.alphaworks.ibm.com/forum/beans_discussion.nsf/discussion_vert
to get examples.
Great support from IBM-ers!
John Spence/
"John P. McGrath" wrote:
> John P. McGrath <mcgrath@enter.net> wrote:
>
> > Martin Schmitt <martin@binarycompass.com> wrote:
> >
> > > I'm trying to retrieve a file from a system on our LAN.
> > > Figured ftp 'd be good idea, something like
> > >
> > > url = new URL("ftp://systemname/dir/file.log");
> > >
> > > Alas it tries to connect, but barfs at the lack of proper
> > > login info (username, password). How the &*#$ do I supply
> > > that -- or should I use the file: protocol?
> >
> > I believe the full format for an FTP URL is:
> >
> > ftp://user:password@host:port/path
>
> This is the correct format for specifying a user name and password in
> an FTP URL. I have checked the appropriate RFC, and also used this
> syntax within Netscape. It works fine.
>
> But when I tried it with Java, the URL parsing class messes up, and
> interprets 'user' as the host name. <sigh>
>
> --
> Regards,
>
> John P. McGrath
> <mcgrath@enter.net>
> <jpm@nscs.fast.net>
Technical Details
Message-ID:
<366ADA17.A09F0C5C@pobox.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<71admh$iff18@forums.borland.com> <MPG.10a6cd322f4c36659896f4@forums.inprise.com> <MPG.10c45acef8b87a3b989736@forums.inprise.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,685bcbce8584be24 X-Google-Attributes: gidf74b3,public From: "John.B. Spence" <jbspence@pobox.com> Subject: Re: FTP Date: 1998/12/06 Message-ID: <366ADA17.A09F0C5C@pobox.com> X-Deja-AN: 419374988 Content-Transfer-Encoding: 7bit References: <71admh$iff18@forums.borland.com> <MPG.10a6cd322f4c36659896f4@forums.inprise.com> <MPG.10c45acef8b87a3b989736@forums.inprise.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language