You are here: Re: A simple question... How to start a file download? « HTML « IT news, forums, messages
Re: A simple question... How to start a file download?

Posted by Benjamin Niemann on 10/06/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/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация