Posted by Benjamin Niemann on 12/23/33 11:25
Jonathan N. Little wrote:
> Benjamin Niemann wrote:
> <snip>
>>
>> I think
>> <a href="ftp://www.site.com/file.xls">Dowload xls NOW!</a>
>> is what you want.
>>
> Will not work unless server is setup for ftp,
I assume that the OP has a working ftp server and is just struggling with
the proper HTML syntax.
> and ftp usually(always?)
> requires a user and password login.
Browsers will usually try to login as 'anonymous' with an arbitrary (or the
email of the user, if available) password. If the ftp server is properly
configured, this will work just fine. Most ftp servers have anonymous read
access enabled as default.
> I do remember reading somewhere of some hacks of trying to encode the
> user & password in a url...but if there is a way I believe this is NOT
> the route your should take.
That's not a hack.
ftp://username@host/path or ftp://username:password@host/path are valid ftp
URLs - though the latter form should not be used, as the password looses
its meaning, if it available on website or in someones bookmark collection.
--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/
[Back to original message]
|