This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes FTP Downloads Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "FTP Downloads" Watch "FTP Downloads" New topic

FTP Downloads

Roger F. Gay
Ranch Hand

Joined: Feb 16, 2007
Posts: 408
I'd like to put on-click ftp download into a web page. I've been trying to do it by putting a normal anchor with ftp. and ftp:// in the href address. I've never done this before, so I don't actually know whether that's supposed to work, but it hasn't so far. Well ... I tried it with an audio file, and on one attempt, I got a bunch of strange text in the page. I did get some response in the ftp server log when I included username and password .. once even got login window.

Part of the background ... I've also not been able to use username:password@host in the browser or Explorer. Perhaps the problem is in the ftp server set-up.

I guess all I want to accomplish with this post, is to find out whether a simple link in a web page (within the context of my http server) should work, and to get the syntax right. If I know that, I can eliminate it as a problem .. and focus on the ftp server set up.
[ April 24, 2007: Message edited by: Roger F. Gay ]

Correlation does not prove causality.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63349

I make any downloadable files available from http and avoid the whole ftp mess.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Roger F. Gay
Ranch Hand

Joined: Feb 16, 2007
Posts: 408
I've had some bad luck with very large files ... slow, incomplete, and corrupt. That's why I started using ftp.
I agree. Here's the link:
subject: FTP Downloads
It's not a secret anymore!