Slashdot Mirror


FTP: Better Than HTTP, Or Obsolete?

An anonymous reader asks "Looking to serve files for downloading (typically 1MB-6MB), I'm confused about whether I should provide an FTP server instead of / as well as HTTP. According to a rapid Google search, the experts say 1) HTTP is slower and less reliable than FTP and 2) HTTP is amateur and will make you look a wimp. But a) FTP is full of security holes. and b) FTP is a crumbling legacy protocol and will make you look a dinosaur. Surely some contradiction... Should I make the effort to implement FTP or take desperate steps to avoid it?"

870 comments

  1. Different, not better or wose by Anonymous Coward · · Score: 0, Redundant

    They serve different purposes, and each was designed to meet those needs. Each one has its own positives and negatives.

    1. Re:Different, not better or wose by Anonymous Coward · · Score: 5, Interesting

      Everyone disables the only unique thing FTP can do (third-party transfers) to prevent a variety of attacks by proxy. It might be worth accomodating decrepit machines that lack HTTP clients, but there are no actual advantages to using FTP.

    2. Re:Different, not better or wose by neuroticia · · Score: 5, Insightful

      Unfortunately HTTP is still a more secure protocol because HTTP clients can easily implement SSL encryption for passwords and sensitive data transfer. When you're dealing with a client who insists on using an outdated, but "easy" FTP client, it's not easy to tell them they have to change, and it's even less easy to tell them what they have to change to.

      FTP is notoriously difficult to secure while retaining ease of use for the clueless end-user.

      -Sara

    3. Re:Different, not better or wose by Anonymous Coward · · Score: 5, Interesting

      They serve different purposes, and each was designed to meet those needs. Each one has its own positives and negatives.

      True, but ftp has far more negatives. The connection model ftp uses, in which the server connects back to the client for data transfers, is a horrible idea. Surely, there must be a benefit to this method (or else why would ftp have become such a standard?), but I've yet to hear it. Passive ftp (PASV) is supposed to compensate for the fact that clients behind NAT can't use ftp, and passive is pretty much supported everywhere now. But passive doesn't solve the problem of many-connections, it just shifts it: With passive ftp, there is still a seperate "data" connection for every file transfer, or transfer of directory contents. It's just that with passive ftp the data connection is initiated by the client to some high-numbered port on the server. This allows clients behind NAT to do ftp, but it makes firewalling the server a pain in the ass, especially if the server is (god forbid) behind nat itself. It's relatively easy to setup a mailserver, or webserver, or ssh server, on a machine behind nat (assuming you can forward ports on the nat gateway). But try doing the same with ftp. Passive connections won't work, unless the ftpd is configured to only use a certain range of high ports for it's data connection, and the firewall forwards that entire range. You'd think with all these connections, the protocol might support multiple connections from one login, ie list another directory while downloading. Well, thats not the case at all, you have to login again if you want simultaneous transactions.

      And then if you want tunneled connections... oh boy, what a pain in the ass:

      I set this all up for someone recently, and it DOES finally work, with tunneled passive ftp connections to a proftpd server behind a nat gateway, but it was a big pain. Due to the way proftpd works (not sure about other daemons...) the passive connections are directed to the interface the client is connected to. So, with an ssh tunneled connection, proftpd sees the client connection TO 127.0.0.1 (because thats where sshd is). So it tells the client, connect back to me for the data connection, my IP is 127.0.0.1. And the client tries to connect to itself, and fails saying "can't open data connection". The solution was to point the tunnel not to 127.0.0.1, but to the external IP, and have the nat gateway forward internal traffic back to itself. So traffic comes in over ssh, over to the firewallwall (where the nat rewriting happens), and then back to the same machine for ftp.

      If people could just use sFTP clients, this wouldn't be an issue _at_all_ (One client connection, one tcp connection! Hey, what a concept!). But due to the integrated ftp clients in programs like bbedit and dreamweaver, I suspect we'll be dealing with that bastard protocol known as ftp for quite a long time....

      Damn, reading back over this, I'm kind of ranting. BUT ITS ALL TRUE!
      Sorry bout that.
      [X] Post Anonymously

    4. Re:Different, not better or wose by Anonymous Coward · · Score: 0

      SFTP is one of the same...Secure File Transfer Protocol ...But HTTP encryption strength beats it out its still encrypted..

    5. Re:Different, not better or wose by alangmead · · Score: 5, Interesting

      In FTP the sender connects to the receiver, but client issuing commands does not have to be either of those two machines. As designed, FTP should be able to allow a client to send data between two arbitrary machines. Its an infrequently used feature, and I'm not sure if it is implemented by all clients, but it is, technically, a feature that HTTP doesn't have.

    6. Re:Different, not better or wose by Skater · · Score: 1, Offtopic

      A friend of mine was over the other night scanning pictures for her website. Apparently her brother set up a website with FTP access for their family. I FTP'd the site (she was having trouble getting it to work, so I used command line FTP to test it), and logged in using anonymous.

      I then noticed that I was able to upload files (to any directory), download files (same), and delete files. As an anonymous user. In their web pages directory, too. Defacing that website would be so trivial that I doubt even the usual twits would bother.

      Nothing like waving a flag that says "Warez traders! Come here!"...

      --RJ

    7. Re:Different, not better or wose by huckleup · · Score: 2, Funny

      So, in other words, her brother is a dumbass...

    8. Re:Different, not better or wose by terpia · · Score: 3, Insightful
      No advantages? Really? Downloading files to a shell acount is a pain in the ass with http, but a breeze with ftp.


      A pretty distinct advantage for those of us who use shells often or have to repair machines at a command prompt.

      --
      .sig wanted: Must be concise, funny, and display my cleverness.
    9. Re:Different, not better or wose by Tikiman · · Score: 1

      I have been told that this technique was/is used all the time by Warez couriers

    10. Re:Different, not better or wose by blixel · · Score: 1

      Defacing that website would be so trivial that I doubt even the usual twits would bother.

      So what's your point?

    11. Re:Different, not better or wose by HMC+CS+Major · · Score: 2, Informative

      lynx, wget, and fetch, all work over http.

    12. Re:Different, not better or wose by sir99 · · Score: 5, Informative
      lynx, wget, and fetch, all work over http.
      Wget (don't know fetch, but assuming it's like Wget) doesn't let you browse to a file; you have to know the full path in advance, or use recursive downloading, or guess with pattern matching.

      Lynx lets you browse, but you can't do globbing, so you see lots of irrelevant crap, and you have to select files to download one at a time.

      For getting (possibly multiple) files whose location you don't know in advance, FTP is more flexible and efficient.

      --
      The ocean parts and the meteors come down
      Laid out in amber, baby.
    13. Re:Different, not better or wose by fault0 · · Score: 3, Interesting

      > For getting (possibly multiple) files whose location you don't know in advance, FTP is more flexible and efficient.

      Ever heard of web page directories that almost every common web server uses, and most web servers automatically do when no index file is present?

      I find lynx+ web page directories a lot faster to get files across my network than ftp.

      The only real advantage I see with ftp is uploading files quickly and easily... but that's not for me :>

    14. Re:Different, not better or wose by Blkdeath · · Score: 1
      I set this all up for someone recently, and it DOES finally work, with tunneled passive ftp connections to a proftpd server behind a nat gateway, but it was a big pain. Due to the way proftpd works (not sure about other daemons...) the passive connections are directed to the interface the client is connected to. So, with an ssh tunneled connection, proftpd sees the client connection TO 127.0.0.1 (because thats where sshd is). So it tells the client, connect back to me for the data connection, my IP is 127.0.0.1. And the client tries to connect to itself, and fails saying "can't open data connection". The solution was to point the tunnel not to 127.0.0.1, but to the external IP, and have the nat gateway forward internal traffic back to itself. So traffic comes in over ssh, over to the firewallwall (where the nat rewriting happens), and then back to the same machine for ftp.

      So let me get this straight; you're using NAT, but are too incompetent to properly configure it for your NAT'ed servers, and this is a fault of the protocol?

      [X] Post Anonymously

      Atleast you had the foresight to cover for your embarassment. It's ok, not everyone is cut out for systems administration. It's never too late to take a shop class.

      --
      BD Phone Home!

      Shameless plug. Like you weren't expecting it.

    15. Re:Different, not better or wose by LoneRanger · · Score: 5, Insightful

      What are you using Lynx to connect to the ftp server? That's the reason it's slow. Try a real client like NcFTP and when you do, make sure to take note of the sheer power.

      mget blah[1,2,3].iso....

      Get the drift? HTTP indexes are rather stupid if you ask me, it's FTP without the features. And before you whine "But I don't need the features", neither do I most of the time, but it's nice when they're there.

    16. Re:Different, not better or wose by onenil · · Score: 1

      FTP over SSH is a good way to secure FTP, and there are a number of clients (Cute FTP Pro being one of them) that supports such implementations out-of-the-box, complete with drag&drop functionality, etc. (assuming of course they're using Windows, which is a fair assumption if they are a clueless end-user :))

    17. Re:Different, not better or wose by CmdrWass · · Score: 3, Informative

      I tend to agree with this, but for different reasons.

      If you are downloading a file off of a remote server, then there are one of two possibilites:

      1) you know the exact address to the file you are looking for... in this case ftp provides no superior advantage over using lynx or wget since in either case you could have been given the direct URL... either provided as an http url or an ftp url. Basically my point here is that an ftp url is no more or less useful or easy to remember than an http url.

      2) you don't know the address of the file you are looking fore... therefore you are pretty much required to browse via http, to find the site (or page) you want to download from... so since you are already forced to browse for the site, then you might as well use the browser to download. For most people that use graphical browsers, this is great... for those of us (myself included) that use shell browsers (ie lynx and links), this poses little problem as well (unless javascript is required to download a file... I friggen hate javascript... people who use javascript in their websites and have a choice should be fired [note, I use javascript in my works' website... but they make me.. I don't have a choice]).

    18. Re:Different, not better or wose by Blkdeath · · Score: 0, Offtopic
      Why don't you tell us how to set it up then, fscktard.

      Why would I tell you how to do it, when I could charge you $60/hour to do it for you? I've already read the manuals, I already know what I'm doing.

      n.b. I charge a fee for computer instruction, too, but it's less than my service fee.

      If this doesn't interest you, try reading the documentation for your FTP server and firewall of choice. Get back to me when you've figured it out. You know who I am.

      --
      BD Phone Home!

      Shameless plug. Like you weren't expecting it.

    19. Re:Different, not better or wose by neuroticia · · Score: 1

      *laughs*

      Unfortunately most of the people I deal with are still using an older version of Fetch (fetch FTP) on an older version of the Mac OS, and have enough difficulty setting "binary transfer" vs. text or automatic.

      Or worse, AOL's FTP function.

      Granted, SFTP or FTP over SSL is a WONDERFUL thing, and I have had pretty good success with getting the end-user to start using it. But it's not as 100% sure-fire as straight FTP as far as "will the person be able to figure it out?"

      -Sara

    20. Re:Different, not better or wose by somnusgti · · Score: 1

      I have to agree with the rant... If only products like dreamweaver (the one my webmaster uses) could have scp built in instead of ftp life would be better, at least not as clear (text).

    21. Re:Different, not better or wose by PyroX_Pro · · Score: 0, Troll

      You really don't have a clue. Never heard of WGET, LYNX, and LINKS? I love http download over ftp any day. Ever write a bash script to pull down 4,500 mame games over http? No? Oh you must be talking about winblows, wait , then why wouldn't you have IE? Your just a dumbass I guess.

    22. Re:Different, not better or wose by Archfeld · · Score: 1, Informative

      ftp is much easier to deal with proxy issues. While possible http makes it difficult. Http is nice for quick small files, but SecureFTP or FTP under a SSH with hashing is the best way, read fastest, most reliable way, that I know of.

      --
      errr....umm...*whooosh* *whoosh* Is this thing on ?
    23. Re:Different, not better or wose by Anonymous Coward · · Score: 0

      FlashFXP, baby!

    24. Re:Different, not better or wose by grolim13 · · Score: 1
      So let me get this straight; you're using NAT, but are too incompetent to properly configure it for your NAT'ed servers, and this is a fault of the protocol?

      No. If you have an SSH-encrypted connection with both ends NATted, there is no way for either end to connect directly to each other, nor any way for the NAT box to fiddle with the IPs that are sent across the FTP control connection (as that would constitute a MITM attack on the SSH connection).

    25. Re:Different, not better or wose by joshsisk · · Score: 2, Insightful

      Why should you have to write a script to download files? Choice FTP programs let you queue downloads just fine.

    26. Re:Different, not better or wose by Anonymous Coward · · Score: 0

      The connection model ftp uses, in which the server connects back to the client for data transfers, is a horrible idea. Surely, there must be a benefit to this method (or else why would ftp have become such a standard?)
      There's no benefit, it's just that FTP wasn't designed with a full duplex underlying transport protocol in mind, i.e. it came about before TCP/IP became everybody's favorite transport. And that's it.

    27. Re:Different, not better or wose by terpia · · Score: 0
      No clue eh?
      Windows?


      Well, I don't know why I would be using a *shell* account on a Windows box, but it is an intriguing thought.


      You wrote a bash script for downloading mame roms? I'm sure you got extra credit in your high school computer class for that. Good job.


      Come to think of it, I've used ftp to transfer large quantities of files many times. It never ocurred to me that it was some sort of special event.


      Perhaps you had clue yourself in first, or troll better.

      --
      .sig wanted: Must be concise, funny, and display my cleverness.
    28. Re:Different, not better or wose by PyroX_Pro · · Score: 1

      Here is my comment, when I looked no-one had replied to the comment, and I thought it to be wrong.

      The mame roms was just an EXAMPLE. An example of downloading a lot from http in a shell. Its not ment to be anything but that. From your post, its easy to assume that you did not know how to download http from a shell account.

      No I am not in high school, don't make assumptions based on a comment at 1:30 am on a website. ( I know I did to you, but I can do that )

    29. Re:Different, not better or wose by zdzichu · · Score: 1

      It's a feature used by all serious warez traders.

      --
      :wq
    30. Re:Different, not better or wose by Anonymous Coward · · Score: 0

      with passive ftp the data connection is initiated by the client to some high-numbered port on the server. This allows clients behind NAT to do ftp, but it makes firewalling the server a pain in the ass, especially if the server is (god forbid) behind nat itself

      Well, I'd say that depends on the firewall. A stateful FW, like Linux 2.4 or *BSD, has no problem. All I do (I run Linux) is to open port 21, enable statefulness and load ip_nat_ftp and ip_conntrack_ftp. The state engine automagically opens the neccessery port for the connector only.

      And since I'm running vsftpd (vsftpd.beasts.org) I'm not too worried about security.

      Peder

    31. Re:Different, not better or wose by junklight · · Score: 1

      A friend of mine was over the other night and mentioned that he brother has a house. I went round and the door was open. I went in and look around a bit.

      I could have done anything - eaten his food, stolen his hifi or burnt the place down.

      I guess houses aren't very safe.

    32. Re:Different, not better or wose by TheLink · · Score: 1

      That has always been a solution looking for a problem. If a feature causes more problems than it solves, it's a bug. And so far it has caused magnitudes more problems than it solved.

      Putting network layer information in content/application layer for programs to use (PASV, PORT) is usually a bad design. Should be an exception not a standard.

      FTP is a badly designed protocol. It may have been the only way to transfer files in the old days but now there are many other better alternatives.

      --
    33. Re:Different, not better or wose by dkf · · Score: 1

      The feature's usually turned off for security reasons. The only variations on FTP where it is turned on that I've heard of have had an absolutely vicious encrypted authentication protocol on top.

      --
      "Little does he know, but there is no 'I' in 'Idiot'!"
    34. Re:Different, not better or wose by Anonymous Coward · · Score: 0

      If you don't know why, well, here is a hint: move scheduled files (megs and megs of news, for instance) each five minutes from Reuters or Europa Press.

    35. Re:Different, not better or wose by kl76 · · Score: 1

      lukemftp (the standard FTP client on NetBSD) will do HTTP too.

    36. Re:Different, not better or wose by dusty123 · · Score: 1

      Strange, that you have so much troubles with FTP behind a firewall.

      Recently, I set up a Linux IPTables firewall for a customer, who had a Windows ftp server he wanted to connect.

      I just did a portforwarding of port 21, loaded the ftp-firewall modules and it worked.

      With stateful firewalls, that have protocol helpers, such things should be quite easy so set up.

    37. Re:Different, not better or wose by n9hmg · · Score: 1

      Downloading files to a shell acount
      Gosh yeah - lynx or wget are so tough to use. That said, I too prefer a plain ftp client for many purposes, though I often then retype the locations of the actual files I want as ftp urls, and get them with wget (for big files, easy automatic restarts). ncftpput is handy for the other direction. http is, however, a perfectly good transfer protocol, and more reliable over some firewalls.

    38. Re:Different, not better or wose by annabaptist · · Score: 1

      if you're using a unix ot linux system as your server you could also use a secure shell ie. rsh, rksh etc.

    39. Re:Different, not better or wose by joshsisk · · Score: 1

      That's not at all what the grandparent was talking about though... He said he wrote a batch script to download game roms. I would assume that he doesn't need to download "Pac-Man" or "Paperboy" every five minutes to keep them up to date, so I pointed out that most good FTP clients would (or should) allow him to queue mass downloads in the same way, without having to write a script for it each time you want to do it.

      Also, though this is unrelated to my point, I doubt there is "megs" of new news every five minutes.

    40. Re:Different, not better or wose by gandy909 · · Score: 1

      No advantages???? You gotta be joking!

      Tell me how to do the equivalent of 'mget *' with http. Tell me how to download the whole folder full of files at once with http.

      --

      (Stolen sig) Remember: it's a "Microsoft virus", not an "email virus", a "Microsoft worm", not a "computer worm
    41. Re:Different, not better or wose by Anonymous Coward · · Score: 0

      JavaScript is useful, I use it, but I NEVER require it, there is always an Alternative method of access, and its usually invisible.

    42. Re:Different, not better or wose by jdavidb · · Score: 1

      wget and curl can help in that situation. It's not the ultimate solution, but it can help.

    43. Re:Different, not better or wose by Anonymous Coward · · Score: 0

      There's no benefit, it's just that FTP wasn't designed with a full duplex underlying transport protocol in mind, i.e. it came about before TCP/IP became everybody's favorite transport. And that's it.

      I don't have any facts or research to support this, but my inclination is that you are dead wrong. Actually I do have some facts, namely that ftp uses IP addresses and TCP port numbers, directly, and that seems to be the big problem with it. As far as I can tell, ftp is forever tied to tcp/ip and I can't imagine it would work anywhere else.

    44. Re:Different, not better or wose by Anonymous Coward · · Score: 0
      Well, I'd say that depends on the firewall. A stateful FW, like Linux 2.4 or *BSD, has no problem. All I do (I run Linux) is to open port 21, enable statefulness and load ip_nat_ftp and ip_conntrack_ftp. The state engine automagically opens the neccessery port for the connector only.

      And since I'm running vsftpd (vsftpd.beasts.org) I'm not too worried about security.


      Well thats nice. But unless vsftpd implements a protocol other than FTP, you should worry about security.
      USER username
      PASS password
      Ever watch what goes over the network? The users of my webserver need to update their shit from their laptops whereever they might be. Even if the ftp password is only useful for ftp, it still lets people modify a goddamn website, and sending that password in cleartext is stupid. The ip_conntrack_ftp module is only useful if the connections are coming in as ftp connections. With a tunneled setup, the firewall can't see the initial connection to map ports for it (because the initial connection is wraped inside ssh). Hence the dilema. (solved with aforementioned firewall tricks)
    45. Re:Different, not better or wose by Anonymous Coward · · Score: 0

      Hmm you must have some reading comprehension problems. Did you miss the part about ssh tunneling? Yes, ftp is easy to do behind nat. The trouble is trying to tunnel it. That trouble is entirely caused by the ftp protocols backasswards nature, and doesn't apply to other protocols like sFTP or rsync or http et al.

      FTP sucks..

    46. Re:Different, not better or wose by raju1kabir · · Score: 1
      No advantages???? You gotta be joking! Tell me how to do the equivalent of 'mget *' with http. Tell me how to download the whole folder full of files at once with http.

      I'm starting to sound like a broken record here, but lftp will do all that you ask, and much much more. Provides the same interface whether via FTP or HTTP.

      --
      "Patriotism is your conviction that this country is superior to all other countries because you were born in it." -- GBS
    47. Re:Different, not better or wose by Skater · · Score: 1

      Sorry--I was at work and on my way to a class, so I was rushing and so a bit unclear.

      My point was that some people don't even TRY to secure their servers.

    48. Re:Different, not better or wose by Deekoo · · Score: 1

      SFTP and HTTP-over-SSL use comparable encryption
      strength. And all SFTP/SSH clients I've seen
      handle public key approval in a *much* better
      way than the way the HTTP clients I've seen
      handle SSL certs. (SSH clients tend to show you
      a key fingerprint that you can check. HTTPS
      clients tend to check to see if the server's
      administrator spent money for a certificate.)

      --
      #include printf("[Yeemp: deekoo~tentacle.net]\n");
  2. Forget them both.... by NinteyThree · · Score: 3, Flamebait

    ...use sftp!

    1. Re:Forget them both.... by Karamchand · · Score: 4, Informative

      I guess that's not what s/he wants. It sounds like anonymous downloading of publicy available files - whatfor do we need any encryption then? There are no passwords to secure, no sensitive data to secure. You'd get only hassles from MSIE users who never heard about sftp..

    2. Re:Forget them both.... by Sunnan · · Score: 1

      Right. It's a lot more demanding on the server, though, and I don't know of a way to provide sftp-access without providing shell access - which opens up a whole can of worms.

    3. Re:Forget them both.... by nuxx · · Score: 5, Insightful

      There's no reason to use sftp for publically available files. This is for the exact same reason that you wouldn't use https. There's no need for encyption of something that is freely, publically available. Checksums, yes, encryption, no.

      I personally would say go with http for the files, as it'll be much easier for people behind http proxies to download, it'll get cached more often by transparant proxies, and most browsers support browsing http directories FAR better than FTP directories.

    4. Re:Forget them both.... by Anonymous Coward · · Score: 0

      It isnt all that hard to just block off everything but sftp with IPchains or your prefered firewall, I use bsdftpd with ssl on a machine that talks to the (management forced) windows network through samba and it works great.

    5. Re:Forget them both.... by Hug+Life · · Score: 4, Insightful

      While this does help with the evasion of an acient protocol, it forgets one of the poster's main goals. The poster worried HTTP is slower ... than FTP . SFTP is very slow considering the overhead each packet has because of encryption. -js

    6. Re:Forget them both.... by Anonymous Coward · · Score: 0

      or stfu, that's good too!

    7. Re:Forget them both.... by ZoneGray · · Score: 4, Informative

      This is slightly off-topic and sftp isn't what he should be using, but you can change the user's shell to /usr/bin/sftp and add it to /etc/shells. I've only tried it with OpenSSH under Linux, so YMMV. I got the idea from an OpenBSD list, though, so it should work most anywhere.

      To answer the original question, when given a choice, I always download by http. It usually takes less time to set up the connection, probably becasue of those ident lookups that most ftpd's still run by default.

    8. Re:Forget them both.... by Daytona955i · · Score: 4, Informative

      sftp is not the way to go if you want public access of files. sftp would be the way to go if you were required an account to download/upload files.

      If the files you are serving are large then use ftp. If the files are smaller (less than 10MB) use http.

      http is great, I sometimes throw up a file on there if I need to give it to someone and it is too big to e-mail. (Happened recently with a batch of photos from the car show)

      Since I already have a web page it was easy to just throw the file in the http directory and provide the link in an e-mail.

      I like http for the most part. I doubt anyone will call you lame for using it, unless the files are huge.
      -Chris

    9. Re:Forget them both.... by neuroticia · · Score: 5, Insightful

      You're also slightly less likely to be threatened with root exploits when using HTTP instead of FTP. Especially if you're already maintaining an HTTP server on the particular machine in use--because you already HAVE that security hole open. Rather than opening another hole, you're using one that's already there.

      -Sara

    10. Re:Forget them both.... by Just+Some+Guy · · Score: 4, Insightful

      It sounds like anonymous downloading of publicy available files - whatfor do we need any encryption then?

      If not for the encryption, then consider what else you get: a well-defined TCP connection. It's a cinch to configure a firewall to allow sftp connections, while FTP firewalling will give you prematurely grey hair (and if it doesn't, then you're not doing it right).

      --
      Dewey, what part of this looks like authorities should be involved?
    11. Re:Forget them both.... by proj_2501 · · Score: 1

      Isn't it up to the server whether http directories are browsable?

    12. Re:Forget them both.... by Tupper · · Score: 1
      There's no reason to use sftp for publically available files. This is for the exact same reason that you wouldn't use https. There's no need for encyption of something that is freely, publically available. Checksums, yes, encryption, no.

      There is a reason to use https for publicly available stuff--- to prevent server spoofing. Assuming that you consider Verisign to be a trusted authority :^)

      Of course, it only gets the client some certainty: the server could have been compromised, etc.

    13. Re:Forget them both.... by elliott666 · · Score: 1

      I don't know about you, but I feel safer knowing that big brother, Uncle Sam, didn't know what it was that I was downloading. I don't want to give those bastards any more information than they already get on me, just on principle.

    14. Re:Forget them both.... by Nexx · · Score: 1

      Totally agree. If you already have a service running, why put up another if you don't need it? One less thing to track for bugs, maintain, and cause a potential remote exploit.

      Incidentally, this is the same reason why you don't run services you don't need.

    15. Re:Forget them both.... by Q+Who · · Score: 1

      There's no need for encyption of something that is freely, publically available. Checksums, yes, encryption, no.

      So, how do you ensure integrity of the checksums, then?

    16. Re:Forget them both.... by Anonymous Coward · · Score: 0

      PGP sign the checksums and the user can download from an untrusted mirror. Or Freenet, Usenet, cheapbytes....

    17. Re:Forget them both.... by Anonymous Coward · · Score: 0

      > Checksums, yes, encryption, no.

      You can do this with SSL: in your server's configuration, you can set the algorithms used, and one of the encryption options is "none."

      It's rarely done, but it lets you select the features you want (here, integrity; for some of my applications, client authentication) without the stuff you don't want (e.g. expensive encryption).

    18. Re:Forget them both.... by muzzmac · · Score: 1

      OK. We are off topic now and you are admittedly not an expert but would your replacement shell stop the r* commands from being run from the remote party? ie commands that are not invoked within a shell.

      Yes. My unix skills are poor.

    19. Re:Forget them both.... by Anonymous Coward · · Score: 0

      whatever... I've been running versions of ncftp for years, and have yet to worry 'bout exploits.

      So what version of ssl are you using on your apache server???

    20. Re:Forget them both.... by LoadWB · · Score: 0
      Something else to support the HTTP argument is that MOST HTTP servers support zlib compression. Compression is why I use sftp/scp... across a 1.5Mb/s ADSL connection I downloaded the 167MB gcc-3.2.1 package for Intel Solaris 8 at an average of 557kB/s, with peeks at 600kB/s! Uncompressed it came over at 162kBs.

      But then, a properly config'd ftp server/client pair can offer compression, too, like AmFTP and the WUArchive server.

      *sigh* Choices choices :)

    21. Re:Forget them both.... by Anonymous Coward · · Score: 0

      The bottom line is that FTP (especially PASV FTP which was suposed to save us admins!?!) causes a GOOD fw admin to open a vast number of ports to the outside world from inside the corporate network.

      A GOOD firewall may have let thing like "slammer" in but would be *less* likely have let them out.

      I learned that lesson with a linux worm that I found xmitting my passwords out on IRC which is never used, but was allowed out because I did not pay attention to outboud traffic.

      Throttles on outbound traffic are the number one problem in today's firewalls. It should be rule #2, beind spamming.

    22. Re:Forget them both.... by mr.+methane · · Score: 5, Informative

      I provide a mirror for a couple of largish open-source sites, and several of them specifically request that sites provide FTP service as preferred over HTTP. A couple of reasons:

      1. Scripts which need to get a list of files before choosing which ones to download - automated installers and the like - are easier to implement with FTP.

      2. FTP generally seems to chew up less CPU on the host. I can serve 12mb/s of traffic all day long on a P-II 450 box with only 256mb of memory.

      3. "download recovery" (after losing connection, etc.) seems to work better in FTP than HTTP.

    23. Re:Forget them both.... by zcat_NZ · · Score: 1

      There is a reason to use https for publicly available stuff--- to prevent server spoofing. Assuming that you consider Verisign to be a trusted authority :^)

      That's a fairly big assumption. Personally I'd rather go with the checksum myself, and who cares if I get the file from ftp.evilhax0rs.org as long as it's verifiably the correct file.

      If it's something like a redhat ISO, you can safely download the file from anywhere (I've heard of people getting new distros from kazaa because the ftp servers are all overloaded.) then get the MD5SUM file from any random mirror or several if you're paranoid. There's very little chance of getting a tampered ISO from one source and a matching tampered checksum from a completely different source.

      --
      455fe10422ca29c4933f95052b792ab2
    24. Re:Forget them both.... by Anonymous Coward · · Score: 0
      I don't know who rates the parent post as flamebait...

      All the serious sysadmins that I know, people who work on internet backbones, swear by sftp.

      Pissant moderators.

    25. Re:Forget them both.... by _Sharp'r_ · · Score: 2
      To comment on the above and its parent:

      1. Most current ssh implementations have an "ssh-dumy-shell" that is specifically designed to only allow an account to use sftp and not regular shell access. I'd look for that feature instead of just pointing the username to sftp itself.

      2. Your shell isn't going to matter for stopping r* commands. What you do for that is to take the neccesary steps to disable them completely. They really have no place running in a modern OS that you are able to install replacements like ssh2 on. Remove rshd (any any other r* style daemon) from inetd.conf (or other similar startup scripts) and add unchangeable default files for /etc/hosts.deny, /etc/hosts.equiv, /etc/login.conf, $HOME/.rhosts and /var/run/nologin defined so that no one could use them if somehow rshd was run.

      --
      The party of stupid and the party of evil get together and do something both stupid and evil, then call it bipartisan.
    26. Re:Forget them both.... by dan+the+person · · Score: 1

      unless of course someone exploited an ftp security hole on redhats mirror server and put the tampered ISO and MD5sum there.

    27. Re:Forget them both.... by zcat_NZ · · Score: 1

      .. That could happen, but it's certainly no more likely than hacking [secure-downloads.com], changing the file, and having the new trojanned binary delivered from their own server through a secure connection signed with their own key.

      --
      455fe10422ca29c4933f95052b792ab2
    28. Re:Forget them both.... by Anonymous Coward · · Score: 0


      Nah prolly slower cause with ftp you have to login with user and pass, suck down a motd, and then at least one cd command directly to the dir you want, before you even begin getting the file.

    29. Re:Forget them both.... by bofkentucky · · Score: 1

      What httpd are you running, apache, it is a full featured httpd, THTTPd or perhaps the tux server will have higher performance than apache. Also there are plenty of apache tuning guides out there to increase speeds/no connections/load

      --
      09f911029d74e35bd84156c5635688c0
    30. Re:Forget them both.... by fucksl4shd0t · · Score: 1

      Isn't it up to the server whether http directories are browsable?

      Ok, here's my two cents. :)

      Yes, it's up to the server. BUT, if you run PHP as well (no perl, no asp, nothing else, just pick ONE scripting language and leave it at that) then you can make your index.php page just give a directory listing for that page, thus duplicating somewhat the functionality of an ftp server.

      You still can't support wildcard downloading like you can with ftp, but it also depends entirely on how the endusers are going to connect to the thing. You can also package up files that are likely to be downloaded together.

      For example:

      1. A music site. You record your own music (or you host music for indy artists, whatever). You post individual files of varying compression to support various bandwidth ranges. You also gather together similar items, such as songs from the same band, songs that go on the same album, or just the first side, and bundle them up in a tarball or something to make them available at a one-click http download.

      2. Software. You host a bunch of software. This is already extensively explored and many inadequate solutions abound. But when you need to download an entire OSS project, and you also need the libraries that you know work with it, it can be a pain to download and extract 5-6 files with http. OTOH, simple php (or perl if you like, or anything else for that matter) will let you work up something where a user can select as many files as they want and it can either a) tarball them and then send them or b) just send each individual file at once (annoying if the web site does it automatically, I think).

      I'm out of contrived examples. I think the root of the problem is all about how the users are going to use the files. If it's something you can expect a bunch of users to be automating downloads for some reason, you probably want ftp. If it's more of a catalog-style server, then you probably want http with a web site to support it.

      Just out of curiosity, is there any advantage to using CVS in some of these cases? There are plenty of server-side scripts that interact with the CVS server to deliver the repository over the web and enable you to download the whole thing. Since it uses CVS you'd have full scripting abilities and so forth, and version control (for mirrors and the like that need to stay up to date) is the purpose of CVS, of course. Or would it be bastardizing a good system for something it's not really made for? (like http is already)

      --
      Like what I said? You might like my music
    31. Re:Forget them both.... by fucksl4shd0t · · Score: 1

      So, how do you ensure integrity of the checksums, then?

      With all due respect, this is a no-brainer. Checksums on the checksums. And even a third layer if you want that.

      As a better solution and an alternative to https, you can use PGP to sign it and provide a checksum for that. That way the end-user gets something signed (and if he knows you then he already got a public key from you that he can trust), and he can verify it's the right file.

      --
      Like what I said? You might like my music
    32. Re:Forget them both.... by 1u3hr · · Score: 1
      because of those ident lookups that most ftpd's still run by default.

      Why the hell bother to do lookups when you're serving freely available files ... especially annoying for me, in Hong Kong, and all these bigots banning anyone in APNIC from access.

    33. Re:Forget them both.... by pediddle · · Score: 1

      I'd agree for more personal transactions, but how do you ensure the integrity of the public PGP key?

    34. Re:Forget them both.... by Izzard · · Score: 1

      All good points. Though if I have a choice when downloading a large file I choose an FTP server precisely *because* my ISP's forced HTTP proxy is so terrible (most likely configured very badly). I would be the exception, rather than the rule though.

    35. Re:Forget them both.... by Anonymous Coward · · Score: 0

      problem is that IE users represent 80% of general purpose traffic. For general purpose files, you're better off with http

    36. Re:Forget them both.... by Anonymous Coward · · Score: 0

      >I learned that lesson with a linux worm that I found xmitting my passwords out on IRC which is never used, but was allowed out because I did not pay attention to outboud traffic

      Little good THAT will do you... worm code can fall back on port 80, meanwhile you may be blocking legitimate IRC users

      (It was hard to convince my IT guy to open IRC for me... he didn't even know what it WAS. IRC is a life-saver, when one of your many jobs is automating QA using Perl and you're not a "real coder". Dog bless #perl!!! )

      A safer solution is to make everyone use SOCKS for "special" access like IRC. You won't find it a burden since anyone who CLAIMS to need IRC, is going to be techie enough to point their client at your socks server...

    37. Re:Forget them both.... by Anonymous Coward · · Score: 0
      As the bastard son of a techie and a non-techie, that would make me a half-techie, and therefore sympathetic to the needs of both parties. If it's not too much trouble, I would implement both HTTP and ftp download options. Include this blurb:

      "Download choice: ftp or HTTP? (note: if you don't understand the question, click HTTP.)"

    38. Re:Forget them both.... by rhadamanthus · · Score: 1
      I dunno about the FTP over HTTP for large file transfers in particular...

      It seems to me that the stateless connection of FTP is particularly useful if you desire many smaller files (no new request/connection per download). HTTP and FTP are remarakably similar in terms of transfer time if the files are large, IMO. However, a busy website can substantially alter this evaluation...

      ----rhad

      --
      Slashdot needs to interview Natalie Portman.
    39. Re:Forget them both.... by entrigant · · Score: 1

      This is one of the reasons I think it would be so cool to have a hardware solution for encryption built into the mainboard or cpu of modern machines. Only problem is people always get their panties in a twist when anything like that appears :(

    40. Re:Forget them both.... by Sunnan · · Score: 1

      sftp and ftps aren't the same thing, though.

    41. Re:Forget them both.... by Sunnan · · Score: 1

      I just found a program called rssh that seems to be what I'm looking for as a replacement shell for sftp-users. I'll look into that.

  3. hmm by nomadic · · Score: 5, Interesting

    I haven't really noticed any reliability issues with http anymore. If it starts loading it usually finishes, and I haven't run into any corruption problems. Maybe if you were serving huge files ftp would be a good idea, but for 1-6 mb it's probably not worth it.

    1. Re:hmm by cbv · · Score: 3, Informative
      If it starts loading it usually finishes, and I haven't run into any corruption problems.

      You may (just may) run into a routing or timeout problem, in which case the download will stop and you are forced to do the entire download again. Using the right client, eg. ncftp, you can continue downloading partially downloaded files. An option, HTTP doesn't offer.

      With respect to the original question, I would set-up a box offering both, HTTP and FTP access.

    2. Re:hmm by nomadic · · Score: 4, Interesting

      Right, but for 1-6 mb I'd rather just try my luck with http. Especially since http is faster to connect to than ftp.

    3. Re:hmm by toast0 · · Score: 5, Informative

      using the right client, ie wget, you can resume from http streams provided the server supports it (and i think most modern ones do)

    4. Re:hmm by cbv · · Score: 2, Informative
      using the right client, ie wget [...]

      Yes, I thought about wget while I wrote my answer - but left it out, simply because _for John Doe_ wget is too complicated. John Doe wants a clickety-click-drag-n-drop client, like a web browser or something like WS-FTP. Granted, ncftp doesn't fall into that category either, but even John Doe can use a simple ftp client.

    5. Re:hmm by tom.allender · · Score: 5, Informative
      you can continue downloading partially downloaded files. An option, HTTP doesn't offer.

      Plain wrong. RFC2068 section 10.2.7.

    6. Re:hmm by rmohr02 · · Score: 0, Troll

      Now if only browsers followed the RFCs...

    7. Re:hmm by jez9999 · · Score: 3, Insightful

      But... doesn't HTTP 1.1 support resuming? I've resumed files over HTTP before...

    8. Re:hmm by FuegoFuerte · · Score: 1

      Netscape 4.x and beyond have all supported resuming http file transfers. I'm pretty sure IE does too, though I'm not sure.

    9. Re:hmm by Anonymous Coward · · Score: 0

      Konqueror can do this, I think Mozilla and Internet Exploder will as well. Just try to save the file that was interrupted in the same place and the browser should pick up where it left off.

      That said, WGET is available on many platforms (Windows and Unix) and can be told to automatically retry and resume if a connection is broken.

    10. Re:hmm by Anonymous Coward · · Score: 0

      Mozilla & Opera both do but I've always found it unreliable with strange interactions with the browser cache making it impossible to recover from corrupted downloads.

    11. Re:hmm by Anonymous Coward · · Score: 0

      there are easy to use clients that support http resuming. like, every download manager.

    12. Re:hmm by epukinsk · · Score: 1

      What about Internet Explorer? Is that too complicated? If I recall correctly (I'm mostly using epiphany and safari lately,) IE resumes http downloads.

      Erik

    13. Re:Hmm by Covener · · Score: 1

      I'm pretty sure the only difference between HTTP and FTP is the connection and handling of transfers. TCP ends up doing the actual file transfer. Write an FTP and HTTP server some time.

      Besides the handling of transfers, these methods of file transfer don't differ at all!

    14. Re:hmm by Anonymous Coward · · Score: 1, Informative

      Sometimes it does and sometimes it doesn't for me. I have a feeling that the file size matters as to whether or not IE keeps the file in the cache (Temporary Internet Files as it's called on Windows). I had to restart my huge Animatrix download 2 whole times from over 50% before I said screw it and just got a wget port for Windows.

    15. Re:hmm by Anonymous Coward · · Score: 0

      You moron. People will be using the ftp client built into IE. Even "power users" don't gain anything by using some sketchy shareware ftp client when they're just grabbing a file off of some dude's site.

    16. Re:hmm by dabootsie · · Score: 1

      Mozilla even has a download "manager" interface now, which you can use instead of individual progress dialogs.

      It's pretty reliable at resuming interrupted downloads, whereas triggering a resume by "overwriting" an unfinished file seems to be mostly hit and miss.

    17. Re:hmm by fredistheking · · Score: 1

      OK, and when was the last time you were able to resume an HTTP transfer? Just because an RFC specifies a feature doesn't mean anyone is going to implement it (even if they should).

    18. Re:hmm by mvdw · · Score: 3, Informative

      Especially since http is faster to connect to than ftp.

      I disagree. Sure, it's easy to browse via http and get one or two files, but when you're trying to suck down the entire directory, http blows (excuse the pun).

      What's faster for getting a whole directory than:

      wget -t 0 -c ftp://ftp.server.name/path/to/dir/*

      Doesn't work with http, because the directory listing doesn't work with wget, at least the version I have.

    19. Re:hmm by Anonymous Coward · · Score: 0

      I used to resume all the time using nothing but IE during the version 4.0 days. It was a feature that a few people I know and I myself noticed would happen under idea situations, but not often.

      Then it mysteriously vanished.

    20. Re:hmm by tachyonflow · · Score: 2, Informative

      It would appear that IE6.0 (at least) supports this resume feature of HTTP, when conditions permit. I just tested it by interrupting a large download from my web site.

    21. Re:hmm by Fillup · · Score: 1

      It's called wget. Or curl. They both resume.

      --
      "I think there is a world market for, maybe, five computers." __ IBM Chairman, 1943 __
    22. Re:hmm by Ian+Bicking · · Score: 1
      That makes no sense. The average user will not use an FTP client, that would require them to read the link before they clicked on it, note the "ftp://", then open up their FTP client and copy the link into it -- after they find where the FTP client accepts URLs, when it usually expects hostnames and directories and such.

      That's so far beyond a normal user it's silly. I don't do that, why would an average user? And of course HTTP is just as capable of resuming than FTP, and that support is nearly universal among modern HTTP servers, but not necessarily FTP servers.

    23. Re:hmm by Mark+(ph'x) · · Score: 1

      IE resumes broken downloads... just re-click the link.

      Its often nice to get apparantly 10mbit speeds over dialup when your resuming one of those downloads that craps out at 97%.

      --
      those who control the past, control the future. those who control the present, control the past.
    24. Re:hmm by askii64 · · Score: 0

      Every download manager I've seen released in the past few years has had an option to resume HTTP downloads - NetAnts, Download Accelerator Plus, ReGet, FlashGet, DLExpert, Star Downloader, etc.

      --

      -This quite possibly mangled, stupid, demented comment was brought to you by Askii64.
    25. Re:hmm by grolim13 · · Score: 4, Informative

      wget -r -l1 http://http.server.name/path/to/dir/ will suck down all the files in that directory; wget -r -np http://http.server.name/path/to/dir/ will pull it down recursively.

    26. Re:hmm by db48x · · Score: 1

      fwiw, Mozilla resumes downloads automatically.

    27. Re:hmm by db48x · · Score: 1

      I should also mention that Mozilla will resume downloads of webpages, images, etc when they break halfway. This is especially noticable with images, since the partial image is kept in the cache, and it'll resume downloading where it left off. And yes, most servers support resuming these days.

    28. Re:hmm by 1u3hr · · Score: 1
      Yes, I thought about wget while I wrote my answer - but left it out, simply because _for John Doe_ wget is too complicated.

      Many (Windows) download assistants, such as Reget can continue interrupted HTTP downloads. Reget tests each connection and displays a happy or frowning face beside each progress line to indicate if the server supports this; almost all seem to.

    29. Re:hmm by askwar · · Score: 2, Interesting

      Okay, but John Doe uses a Web browser to download files from FTP.

      Web browsers don't support reget, AFAIK. (Please correct me, if I'm wrong.)

      If John Doe is a little bit educated, he might use tools like GetRight. GetRight supports partial transfer from both FTP and HTTP.

      --
      Alexander Skwar -- Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die
    30. Re:hmm by cicadia · · Score: 1
      I hoped that someone would mention that feature.

      BTW, RFC2616 has obsoleted RFC2068.

      Also, sections 3.12 and 14.35 are pretty good, if anyone here is looking for info on resuming HTTP downloads.

      --
      Living better through chemicals
    31. Re:hmm by zby · · Score: 1

      I believe current mozilla does it. When I hit reload button on a half loaded image it starts loading from the point where it stopped.

    32. Re:hmm by bicho · · Score: 1

      yeah, it will download banners and unwanted content as well if you are very very not carefull, so you might end up wasting a lot of bandwidth following irrelevant links.

      --

      errera hunamum ets
    33. Re:hmm by Koos · · Score: 1
      If John Doe is a little bit educated, he might use tools like GetRight. GetRight supports partial transfer from both FTP and HTTP.
      GetRight also supports opening way too many connections to a webserver. This does not help speed-up the download one bit (it still has to travel the limited pipe at the receiving end and you get more tcp setup/teardown overhead) and it is anti-social to the rest of the visitors of the webserver. Our webserver at work serves some popular .zip files and connections from 'download managers' were over half of the apache pool with only about 10 real users behind that. When I installed mod_limitipconn.c for Apache and limited each IP to max 3 connections, responsiveness went up, usage (in server processes) went down and outgoing traffic (in bytes) tripled.
    34. Re:hmm by Bert64 · · Score: 1

      Furthurmore, some ftpservers dont permit resumeable downloads (most noticeably the microsoft ftpd, tho maybe it supports this now)

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    35. Re:hmm by godefroi · · Score: 1

      IE has been resuming downloads over HTTP since 5.0 at least, and maybe into 4.x somewere.

      Of course, if you're biased towards FTP, then go ahead and ignore that fact.

      Me, I'll download anything I can over HTTP instead of FTP (in IE! Gasp!). If it's bigger than a couple hundred megs, I use wget.

      --
      Karma: Poor (Mostly affected by lame karma-joke sigs)
    36. Re:hmm by Empty+Threats · · Score: 1

      Opera supports resuming. IE may not.

    37. Re:hmm by vidarlo · · Score: 1

      Opera actually supports this fine, although it is a bit creepy about it, for example, you can't have touched the file since interupted download.

    38. Re:hmm by Anonymous Coward · · Score: 0

      Thanks.

  4. I wouldn't worry about it... by $$$$$exyGal · · Score: 2, Insightful
    Do whatever is more convenient for you. The differences are not that great.

    --sex

    --
    Very popular slashdot journal for adul
    1. Re:I wouldn't worry about it... by Anonymous Coward · · Score: 0

      http://www.sigacanada.com/frontpage/politicalart/B ushDidItSign/BushDidIT.htm

    2. Re:I wouldn't worry about it... by Stoutlimb · · Score: 1

      Maybe I'm slow, but I havn't found a way to do batch file transfers with HTTP. There's just no way to do it without clicking on every single damn link, selecting "save as", and then downloading. Sure you can generally get several going at once, it's still not the same as selecting several folders and doing a batch transfer in my FTP client. Or is are there apps or methods of doing this for HTTP?

      Bork!

    3. Re:I wouldn't worry about it... by fonebone · · Score: 3, Funny

      Maybe I'm slow, but I havn't found a way to do batch file transfers with HTTP. There's just no way to do it without clicking on every single damn link, selecting "save as", and then downloading. Sure you can generally get several going at once, it's still not the same as selecting several folders and doing a batch transfer in my FTP client. Or is are there apps or methods of doing this for HTTP?

      if you're using linux, you can use wget. and if you're on windows, you can get cygwin and then also use wget.. there's gotta be other utilities with the same features, but wget is definitely the classic and does pretty much everything you'd need.

      --
      when the rain comes, they run and hide their heads. they might as well be dead.
    4. Re:I wouldn't worry about it... by pixel.jonah · · Score: 2, Informative

      or just do a search for the windows build of wget (wget.exe) - I use it all the time, still isn't a GUI for it though. However if you want to pass in a text file with all the urls you want to download - its killer. and fast too.

    5. Re:I wouldn't worry about it... by dimator · · Score: 2, Informative

      http://www.interlog.com/~tcharron/wgetwin.html

      This is probably the first thing I get when I'm doing a new windows installation. For larger files, its a must. You also don't have to deal with browsers using their cache directory to download, and then *copying* it to the directory you really wanted. (Who the hell thought of doing it that way?)

      --
      python -c "x='python -c %sx=%s; print x%%(chr(34),repr(x),chr(34))%s'; print x%(chr(34),repr(x),chr(34))"
    6. Re:I wouldn't worry about it... by edwdig · · Score: 2, Insightful

      The idea behind downloading into the cache and then copying it is that the download starts as soon as you click the link. While you're navigating the file selector deciding what to do with it, the transfer is in progress.

    7. Re:I wouldn't worry about it... by slagdogg · · Score: 2, Informative

      'wget' with shell script capabilities is a very handy tool indeed ... for f in {0-2}{0-9} ; wget http://somesite.com/images/teen-$f.jpg :|

      --
      (Score:-1, Wrong)
    8. Re:I wouldn't worry about it... by grolim13 · · Score: 1
      Copying it instead of moving it is bloody stupid, though. I have a friend with a cable modem connection on an old computer with a very slow hard drive. It takes longer to copy a big file from the cache directory to wherever it was supposed to end up than it does to download the file in the first place at ~250kb/s.

      I wonder what IE does when there's only enough room for one copy of the file on the drive.

    9. Re:I wouldn't worry about it... by broken.data · · Score: 1

      If you are on Windows use Download Accelerator (DAP) at www.speedbit.com You can leech an entire page (ftp + http links) with one click.

    10. Re:I wouldn't worry about it... by Anonymous Coward · · Score: 0

      I wonder what IE does when there's only enough room for one copy of the file on the drive. It goes BEEP BEEP BEEP and overwrites your paper. It was a REALLY GOOD PAPER!

    11. Re:I wouldn't worry about it... by Duds · · Score: 1

      Wget is good as the other guys said.

      If you like your GUI friendly programs try Reget

      Very nice. Integrates with IE, finds its way through most redirects etc.

      What you can do is right click on a page and say "download all by reget" or just select a load and drag it to a little box in the bottom right.

    12. Re:I wouldn't worry about it... by mallfouf · · Score: 1

      Use flashget
      It's one of the best file managers out there. It allows you to download through http without clicking on all the links, to browse the site in folders.
      All you have to do it right mouse click on the page you're in, and select "Download all by flashget", and it will just do that. -- read the manual --

  5. Screw all of that! by Anonymous Coward · · Score: 4, Funny

    Use telnet and screen capture the VT100 Term buffer!

    1. Re:Screw all of that! by brokenin2 · · Score: 1

      ah yes... uuencode it all.. that's perfect!!

    2. Re:Screw all of that! by Anonymous Coward · · Score: 0

      Why not send the user a hex dump of the files per postal mail and have them type it in at their pc?

    3. Re:Screw all of that! by Anonymous Coward · · Score: 1, Funny

      Dont slam telnet hacking my schools telnet boxes and stealing the cs finals from my professors directory is how I got my degree. Ahhh if only everyone ran telnet.

    4. Re:Screw all of that! by orangesquid · · Score: 1

      I actually really did used to do this. I can't remember now, but it involved some kind of dialup to a shell account. No PPP/SLIP, so to transfer files I used uuencode and cat, and captured to a file and then uudecoded.
      I was worried about reliability, but the only time it died was when I missed the first two lines somehow.

      --
      --TheOrangeSquid Is it any wonder things seem so awry? We swim in a sea of confusion and don't have to think to survive
    5. Re:Screw all of that! by AntiNorm · · Score: 1

      Why not send the user a hex dump of the files per postal mail and have them type it in at their pc?

      I remember the old Commodore 64 magazines that would do just this. There was a popular program called MLX that would let you enter the listings, which came complete with per-line checksums.

      --

      I pledge allegiance to the flag...
      of the Corporate States of America...
    6. Re:Screw all of that! by simp · · Score: 1
      Use telnet and screen capture the VT100 Term buffer!
      That's not funny. I still use this method on occasion. And this is in big industrial environments... When your toolset is limited, you have to be a bit creative to get the job done.
  6. In my opinion, by Anonymous Coward · · Score: 0

    HTTP is the way to go, especially for larger files, because you can see the download rate and a better estimate of how much longer before the download is complete. The "HTTP is for wimps" mentality is for fools. You normally don't see the download rate when using FTP, unless you're using a special ftp GUI....which, could be argued, is for wimps.

    1. Re:In my opinion, by captain_craptacular · · Score: 2, Offtopic

      Ahh, I always set hash on before command line ftping. Then I get to see the pretty #'s fly by...

      --
      They who would give up an essential liberty for temporary security, deserve neither liberty nor security
    2. Re:In my opinion, by Dragonmaster+Lou · · Score: 2, Informative

      ncftp is a command-line client that shows you your download progress.

    3. Re:In my opinion, by greppling · · Score: 1
      They who would give up an essential liberty for temporary security, deserve neither liberty or security.

      Which liberty? Liberty to use ftp? So HTTP-only doesn't deserve security??? I don't quite get it...

      8)

    4. Re:In my opinion, by Anonymous Coward · · Score: 0

      Offtopic? Setting hash gives you a download status from command line ftp, exactly what the parent was bitching about.

  7. do both... by jeffy124 · · Score: 4, Informative

    But in my experiences, HTTP for whatever reason goes faster (not entirely sure why), and FTP doesnt work for some because of firewalls.

    Try both - see which gets used more.

    --
    The One Rule Of Chess You'll Ever Need: Don't play someone who carries a kit in their bookbag.
    1. Re:do both... by enos · · Score: 5, Funny
      Try both - see which gets used more.

      Then report back to us in the first ever Answer Slashdot.

      --
      boldly going forward, 'cause we can't find reverse
    2. Re:do both... by Jupiter9 · · Score: 1

      But in my experiences, HTTP for whatever reason goes faster (not entirely sure why)

      Yeah, I get this same result, almost 100% of the time. When ever I get a choice of downloading by ftp or http, I usually just choose http now because it seems much faster. I can't explain why either. And I don't buy the fact that ftp is more reliable now adays... I've yet to download a 650mb iso image by http and have it be corrupted.

      --

      --
      Does anyone remember /\/\/\?
    3. Re:do both... by Anonymous Coward · · Score: 0

      ftp may sem slower if you use your browser to download
      from ftps. the ftp client in webrowsers often suck.
      of corse with multipel downloads http goes faster often becus of the logon time to the ftp. for exampel with apt-get http is often preferd over ftp. becus you get instant replay from the server and its often many small packages that gets downloaded. since he is going to offer small files for download and must peopel will use theri web browsers to download http is prefferd.

    4. Re:do both... by kasperd · · Score: 1

      HTTP for whatever reason goes faster

      That is hardly surprising, in fact that is what I would expect. I don't know the details of the FTP protocol, but I know The HTTP protocol pretty well, and it is not possible to do anything much faster than HTTP. As soon as the HTTP headers has been sent, the file is sent raw over the TCP connection, and it can even be gzipped while in transit if client and server supports that. HTTP is optimal for large files, but since I do not know the details of FTP it could be as good as HTTP, but it cannot be any better.

      The fact that FTP is tricky to get working through firewall and/or nat is my main reason to prefer HTTP. Of course it might be, that you can find an FTP client or server with some features you like, but I believe it could all be done at least as good over HTTP. (Except perhaps from getting a directory listning from the server)

      --

      Do you care about the security of your wireless mouse?
    5. Re:do both... by Hast · · Score: 1

      HTTP 1.0 should be slower than FTP, as it requires a new connection with each file. 1.1 has support for multiple files so this issue becomes pretty moot.

      There are other rather big differances in implementations as well. But I doubt any are big enough to actually matter to a regular server today.

      The big benefit with FTP is that you have user control. If you need permissions FTP is the way to go. If you want users to download multiple files then FTP is also usually more practical. And for big projects there are quite a lot of flexibility in FTP for having server farms and caches. (The computer serving the control connection doesn't have to be the same serving the data connection.)

      That said if you need big files to a lot of users get something like BitTorrent or SwarmCast. More efficient than either HTTP or FTP. (But you still need a HTTP server for those.)

    6. Re:do both... by Old+Wolf · · Score: 1

      My guess would be this: when you do an HTTP download, your ISP's transparent proxy schwomps the file down on its fat pipes, so the speed you end up seeing is only limited by your connection to your ISP (usually,maximum speed). However with FTP every packet is going direct from you to the server, which can have delays and so on.

    7. Re:do both... by SailorFrag · · Score: 1
      FTP does the same; its data connection is just a raw file sent over TCP. Neither should be faster than the other.

      Sometimes an ISP's web proxy (transparent or otherwise) can help speed HTTP downloads by caching frequently requested files. For larger files, it shouldn't have any difference.

      So basically, the two are the same speed once established, though HTTP does start faster.

      A more practical reason to choose one over the other is this: if you are trying to host web sites with dynamic content AND downloadable files on the same system, then using lighter-weight ftpd processes to send large files keeps the heavy apache+mod_php+mod_perl+mod_ssl (or some combination of those) processes free to handle clients. Extremely high traffic sites actually have to be concerned about the number of connections, as if you leave HTTP keepalive enabled, then you can easily pass the default compiled-in 255 client limit for apache if there's over 100 processes stuck sending files that might take an hour to complete. FTP will keep the downloads from overwheming the web pages, as they will have separate limits.

    8. Re:do both... by epsalon · · Score: 1

      Maybe you're behind a (transparent?) proxy. In that case the ISOs might be in cache, or the proxy might have a bigger pipe.
      Also, port 80 tends to have higher priority than the arbitrary FTP ports.

    9. Re:do both... by aug24 · · Score: 1
      See here for a comparison of FTP and HTTP.

      Justin.

      --
      You're only jealous cos the little penguins are talking to me.
  8. how about rsync? by SurfTheWorld · · Score: 5, Informative

    rsync is a great protocol, fairly robust, can be wrappered in ssh (or not), supports resuming transmission, and operates over one socket.

    seems like the best of both worlds to me.

    the real question is - do you control the clients that are going to access you? or is it something like a browser (which doesn't support rsync).

    --
    Do it for da shorties
    1. Re:how about rsync? by Anonymous Coward · · Score: 0

      [chris@homer ~]$ killall evolution

      try the killev script, it's great

    2. Re:how about rsync? by MisterMook · · Score: 5, Funny

      I don't know, after Rsync's last album I've decided that they're probably too old for serious contending in the boy-band heavy marketplace.

    3. Re:how about rsync? by Dr.+Awktagon · · Score: 5, Informative

      Agreed.. I've had enough headaches with FTP and firewalls/NAT, let's just let it die. For robust downloading of large files rsync is the protocol to use.

      For those not familiar: rsync can copy or synchronize files or directories of files. it divides the files into blocks and only transfers the parts of the file that are different or missing. It's awesome for mirrored backups, among other things. There is even a Mac OS X version that tranfers the Mac-specific metadata of each file.

      Just today I had to transfer a ~400MB file to a machine over a fairly slow connection. The only way in was SSH and the only way out was HTTP.

      First I tried HTTP and the connection dropped. No problem, I thought, I'll just use "wget -c" and it will continue fine. Well, it continued, but the archive was corrupt.

      I remembered that rsync can run over SSH and I rsync'd the file over the damaged one. It took a few moments for it to find the blocks with the errors, and it downloaded just thost blocks.

      Rsync should be built into every program that downloads large files, including web browsers. Apple or someone should pick up this technology, give it some good marketing ("auto-repair download" or something) and life will be good.

      Rsync also has a daemon mode that allows you to run a dedicated rsync server. This is good for public distribution of files.

      Rsync is the way to go! I guess this really doesn't 100% answer the poster's question, but people really should be thinking about rsync more.

    4. Re:how about rsync? by Anonymous Coward · · Score: 0

      Rsync should be built into every program that downloads large files

      or par2. With that you wouldn't have to tell the sender what blocks you were missing, just keep downloading until you have enough valid chucks to reconstruct the data. If latency is more of a problem than bandwidth it's happier.

      It's a little too slow tho...

    5. Re:how about rsync? by ortholattice · · Score: 1
      First I tried HTTP and the connection dropped. No problem, I thought, I'll just use "wget -c" and it will continue fine. Well, it continued, but the archive was corrupt.

      I've had similar problems with interrupted downloads. Continuations always seem to be a gamble. Can someone tell me: is this a bug in the server, the first client, or wget? Can it be fixed, or is it some intrinsic unsolveable problem?

    6. Re:how about rsync? by swillden · · Score: 4, Interesting

      Rsync is the way to go!

      Rsync is great in theory, but the implementation has one major problem that makes it less than ideal for many cases: It puts a huge burden on the server, because the server has to calculate the MD5 sums on each block of each file it serves up, which is a CPU-intensive task. A machine which could easily handle a few dozen HTTP downloads at a time would choke with only a few rsync downloads.

      This is a problem with the implementation, not with the theory, because it wouldn't be that difficult for the rsync server to cache the MD5 sums so that it only had to calculate them once for each file (assuming it's downloading static content -- for dynamic content rsync will probably never make sense, particularly since we can probably expect bandwidth to increase faster than processing power). The server could even take advantage of 'idle' times to precalculate sums. Once it had all of the sums cached, serving files via rsync wouldn't be that much more costly in terms of CPU power than HTTP or FTP, and it would often be *much* more efficient in terms of bandwidth.

      --
      Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
    7. Re:how about rsync? by Anonymous Coward · · Score: 0

      we already have it...FsRAID...it's raid for files. Parity files that is.

    8. Re:how about rsync? by JoeBuck · · Score: 1

      rsync is not suitable for a server that will serve many clients, as the computational load is intense. It trades off CPU for bandwidth.

    9. Re:how about rsync? by hoegg · · Score: 4, Insightful

      Caching MD5 sums for every block? Well, this may ease the load on your processor but I hope you have plenty of RAM!

    10. Re:how about rsync? by Skapare · · Score: 1

      The MD5 cache does not need to be stored in RAM. In fact that would be harder to do across different rsync sessions. The cache would be in the form of a configured alternative file path. The config might look like:

      md5cachepath = /home/public-md5

      That would be put into each context in the /etc/rsyncd.conf file. It would represent a parallel file tree to the one specified by "path =" with every name matching with an optional .md5 extension. If the md5cachepath is the same as path then the extension is required. When it processes a file it would check for the cache file and its date. If it does not exist or the date does not match, it just forces live checksumming. It would probably be best to have only a single process creating the checksum cache files.

      --
      now we need to go OSS in diesel cars
    11. Re:how about rsync? by AT · · Score: 1

      Actually, rsync uses (or used, perhaps it has changed) MD4, not MD5. Regardless, the cost of MD4 is comparable to MD5.

    12. Re:how about rsync? by Sarcazmo · · Score: 1

      Why MD5? Wouldn't a simple CRC be a better choice? Rsync over ssh, as it normally used over insecure networks already insures a secure download, so why waste time with MD5 when a much simpler hashing algorithm could be used?

    13. Re:how about rsync? by virtual_mps · · Score: 1
      Why MD5? Wouldn't a simple CRC be a better choice


      No. A CRC won't be reliable enough.
    14. Re:how about rsync? by virtual_mps · · Score: 2, Insightful
      This is a problem with the implementation, not with the theory, because it wouldn't be that difficult for the rsync server to cache the MD5 sums so that it only had to calculate them once for each file


      rsync wasn't written by a moron. :) I think you'll find that fairly obvious optimization is patented, which is AFAIK why there's no rsync server mode that does it.
    15. Re:how about rsync? by AT · · Score: 1

      A checksum is used. The way it works is that a simple rolling checksum is computed on the fly. The checksum is easy to compute but isn't 100% accurate. So a strong message digest algorithm (MD4, not MD5, I think) is used to ensure everything came out consistant.

      The message digest is necessary, simply to back up the rolling checksum. After all, if rsync was unreliable at exactly duplicating files it would be useless.

    16. Re:how about rsync? by Anonymous Coward · · Score: 0

      If the CRC's don't match you know you don't have the same blocks. If they are the same, then you don't know.
      A 64 bit CRC would be quite quick. A 64 bit CRC with a round or two of MD5 or MD4 might be good enough. The problem is finding the time to play with the hashes and see what works.

    17. Re:how about rsync? by Anonymous Coward · · Score: 1, Interesting

      If you want to avoid sucking CPU and aren't concerned about sucking bandwidth you can use "--whole-file" to just transfer... wait for it... whole files without doing incremental checks.

      But if the recipient doesn't have the file already rsync wouldn't need to do incremental checksums anyway.

      (I love rsync, I mirror changes on a 250 gig file server every night, runs in 20-30 minutes generally (5-10 gigs of new stuff))

    18. Re:how about rsync? by Anonymous Coward · · Score: 0
      the real question is - do you control the clients that are going to access you?

      uh uh.... IN SOVIET RUSSIA the clients access you???

    19. Re:how about rsync? by C32 · · Score: 1

      probably to do with some http server (versions) rounding the content-length field the wrong way on resumes..

    20. Re:how about rsync? by You're+All+Wrong · · Score: 1

      Bollocks.

      What's your error model? It must be pretty wacky, and therefore unbelievable.

      A 128-bit CRC will be exactly as reliable as an MD5 checksum under all common error models.

      Or is 2^-128 different in value from 2^-128 in the maths that you learnt at school?

      Remember, there is no Mallory in this scenario, so don't go running off and invoking Mallory.

      YAW.

      --
      Your head of state is a corrupt weasel, I hope you're happy.
    21. Re:how about rsync? by p3d0 · · Score: 1
      Easy there, cowboy. The checksums in this case are not meant to detect errors. They are meant to decide whether two blocks are different from each other without transferring either block across the network. There's a difference, though it may be subtle.

      MD5 (or actually MD4) is a cryptographically strong checksum, so the chances of the checksum being the same for two different blocks is truly 2^-128. CRCs, on the other hand, were not designed for this, and so the probability of a collision is much higher.

      We're not talking about detecting single-bit errors, sequences of bit errors, etc. that CRC is good at; we're talking about finding arbitrary differences between two blocks of data. It's not hard to construct two blocks with minor differences that have the same CRC, but only a brute-force search will find two blocks with the same MD4.

      --
      Patrick Doyle
      I mod down every jackass who puts his moderation policy in his sig. Oh, wait a sec....
    22. Re:how about rsync? by p3d0 · · Score: 1

      It depends on what is the common case. If blocks usually do match, then the additional CRC would be pure overhead.

      --
      Patrick Doyle
      I mod down every jackass who puts his moderation policy in his sig. Oh, wait a sec....
    23. Re:how about rsync? by You're+All+Wrong · · Score: 1

      BZZZT! You invoked Mallory as soon as you said
      "It's not hard to construct two blocks..." That's a _malicious_ _sentient_ attack.

      So your error model is that there's an intelligent being deliberately intercepting blocks and trying to modify them?

      And your comment about the probability of a collision for a CRC is just plain wrong.
      There was a thread about this on sci.crypt about 2 weeks ago. Go read at google.
      ('checksum' probably being a useful search term.)

      YAW.

      --
      Your head of state is a corrupt weasel, I hope you're happy.
    24. Re:how about rsync? by p3d0 · · Score: 1

      Ok, thanks. You clearly know more about this than I do.

      --
      Patrick Doyle
      I mod down every jackass who puts his moderation policy in his sig. Oh, wait a sec....
    25. Re:how about rsync? by swillden · · Score: 1

      You'd cache them to disk, obviously.

      --
      Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
    26. Re:how about rsync? by swillden · · Score: 1

      Thanks. I've wondered why that optimization was left out, because it is quite obvious, and Andrew Tridgell is clearly not a moron :-)

      --
      Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
    27. Re:how about rsync? by swillden · · Score: 1

      Why MD5? Wouldn't a simple CRC be a better choice?

      The author's response (from a presentation he gave -- google is your friend, if you use it):

      Why do you use MD4; why not use something simple like CRC16?

      Primarily as a PR stunt. When rsync came out, nobody trusted it. Everyone said: it can't work; this is going to fail all the time; the probability for failure is blah and blah. And there were all these people saying it's not going to work. So me being able to tell them that rsync failing is equivalent to breaking MD4, gives them a nice, warm feeling in the tummy. The fact is that no one is attacking the transfer, right. Because they're not attacking the transfer, a CRC is ideal. And in fact I would have used a CRC if it wasn't for the fact that users wouldn't have trusted it.

      But you're right, from a mathematical point of view, a CRC would be far more appropriate, but MD4 is actually very fast. It's quite a bit faster than MD5; I already had one laying around that I'd written for Samba, because you need it for the encryption stuff in Samba; and it also meant that I felt very confident that I was transferring the right data. That was particularly when I wasn't using the whole-file checksum. I could now, for example, go to a CRC per block and go to an MD4 for the whole-file checksum and that would be fine, because then I can still say it's equivalent to breaking MD4, but why bother? That is not the bottleneck and in fact the bottleneck, when people use the -z option, 90% of the CPU is in gzip, you know, the zlib library.

      So, yeah, you could use something faster, at the expense of being incompatible with all of the deployed rsync client software.

      --
      Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
    28. Re:how about rsync? by virtual_mps · · Score: 2, Informative

      What's your error model? It must be pretty wacky, and therefore unbelievable.

      A 128-bit CRC will be exactly as reliable as an MD5 checksum under all common error models.


      Thank you for pointing out that crc's are designed to look for errors--since in this application the checksum is used to uniquely identify a block, not to check for errors. You've quite succinctly explained the reason crc's won't work.
    29. Re:how about rsync? by Sarcazmo · · Score: 1

      Thanks for the info. Too bad you likely posted too late in the story to get modded up, your's is the most informative response.

    30. Re:how about rsync? by swillden · · Score: 1

      Thanks... what's really ironic is that (a) my post did get modded up -- to a 5 -- and (b) I was wrong! Ah, well, that's /. for you...

      I went back and studied rsync a little more (just 'cause I think it's cool) and the way it works, there's no way you can cache the checksums on the server side. You could redesign the protocol in such a way that it would be possible to cache them, but it would be completely incompatible and it would be somewhat less efficient.

      For every informative, insightful post that languishes in obscurity, there is a 5 that is flat wrong...

      --
      Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
  9. Http/Ftp which is slower? by emf · · Score: 3, Informative

    "HTTP is slower and less reliable than FTP"

    I would think FTP is slower since with FTP you have to login and build the data connection before the transfer begins. With HTTP it's a simple GET request.

    As far as the actual data being sent, I believe that the file is sent the same way with both protocols. (just send the data via a TCP connection). I could be wrong though.

    1. Re:Http/Ftp which is slower? by spRed · · Score: 0, Informative

      I could be wrong though.

      You were right on that one point...

      an FTP session has two connections, the control which is TCP/IP and data which is UDP. The latency (time to auth etc) is longer on FTP but not really 'slower'

      For the actual benefits and tradeoffs of each just read some of the other posts in the thread.

      --
      .sig Karma out the wazoo, better to spend points elsewhere if this is above 2 or below 0
    2. Re:Http/Ftp which is slower? by Anonymous Coward · · Score: 0

      FTP data is NOT udp. Read RFC 959. I don't know why people keep repeating this inaccuracy, but it's obnoxious.

    3. Re:Http/Ftp which is slower? by treat · · Score: 4, Informative
      an FTP session has two connections, the control which is TCP/IP and data which is UDP.

      This is not true. FTP does not use UDP fpr any purpose.

    4. Re:Http/Ftp which is slower? by DaveBarr · · Score: 5, Informative

      The data connection is most assuredly NOT UDP. It is a TCP connection just like the control connection. But yes, the latency required to initiate a transfer (due to more handshakes) generally makes FTP slower in general.

    5. Re:Http/Ftp which is slower? by Anonymous Coward · · Score: 0

      Both the FTP control connection (port 21) and the FTP data connection (port 20) are TCP connections.

    6. Re:Http/Ftp which is slower? by Greger47 · · Score: 1

      Beep! Wrong!

      Just to keep the record straight: both the control and the data connection use TCP. Other than that the conclutions hold true.

    7. Re:Http/Ftp which is slower? by happynut · · Score: 1

      Actually you (spRed) are wrong. FTP supports a single connection (Passive, or PASV in the actual protocol), which is what most web browsers use by default. The "legacy" mode for FTP is to open up a separate port for the data, but many firewalls don't allow the separate port to be successfully connected to (I won't go into the reasons here...)

      Also the data path uses TCP (not UDP as you state); it lives on port 20 by default.

    8. Re:Http/Ftp which is slower? by JPriest · · Score: 0, Offtopic

      FTP uses UDP and gets modded "Score:3, Informative"? I though this was a technical news site.

      --
      Saying Java is nice because it works on all OS's is like saying that anal sex is nice because it works on all genders.
    9. Re:Http/Ftp which is slower? by Piquan · · Score: 1

      Passive is not a single-connection transfer. It uses an outbound connection for the data (from the POV of the client), whereas non-passive uses an inbound connection. That's why you normally need pasv to go through a firewall.

    10. Re:Http/Ftp which is slower? by Anonymous Coward · · Score: 0

      HAHAHHAHAHAHAH. First you said something as stupid as "data (connection) which is UDP", then even funnier, a bunch of fucking morons modded you up!

      Slashdot. You gotta love it.

    11. Re:Http/Ftp which is slower? by Edgewize · · Score: 5, Informative

      FTP supports a single connection (Passive, or PASV in the actual protocol), which is what most web browsers use by default.

      No, no, no. Jesus. Everyone always gets this wrong. FTP in any mode uses two TCP connections. Passive or not, there is a channel for data and a separate channel for commands.

      The difference is that passive-mode means that the client initiates the data connection. The default FTP behavior is for the client to connect to port 21 on the server, and then the server initiates a data connection to the client.

      Non-passive FTP clients are very hard for firewalls to keep track of, especially when NAT is involved. Passive is a little better because both connections are outgoing.

      But at the same time, passive mode makes the server firewall's job tougher, because it requires an large range of incoming ports for the data connections.

      No matter what the mode, FTP is not very firewall-friendly.

    12. Re:Http/Ftp which is slower? by happynut · · Score: 1

      I apologize; Edgewize is right and I'm wrong -- PASV doesn't use the same connection; it works just the way you said (I checked RFC 959).

      I guess this can be the internet-tidbit-of-the-day that I learned...

    13. Re:Http/Ftp which is slower? by IanBevan · · Score: 1

      And the reason for this is that UDP does not guarantee either order or delivery of packets. Unless you are in a Microsoft only environment, however, where both of these are in fact guaranteed. Microsoft did this to support DCOM, whose preferred protocol is, of course, UDP.

    14. Re:Http/Ftp which is slower? by aldjiblah · · Score: 1

      > an FTP session has two connections, the control which is > TCP/IP and data which is UDP.

      Wrong, data is also TCP. FTP has no UDP component.

      --
      sig sig sputnik
    15. Re:Http/Ftp which is slower? by Daniel · · Score: 1

      You've got to be kidding.

      Daniel

      --
      Hurry up and jump on the individualist bandwagon!
    16. Re:Http/Ftp which is slower? by phutureboy · · Score: 1

      "HTTP is slower and less reliable than FTP"

      I would think FTP is slower since with FTP you have to login and build the data connection before the transfer begins. With HTTP it's a simple GET request.

      As far as the actual data being sent, I believe that the file is sent the same way with both protocols. (just send the data via a TCP connection). I could be wrong though.


      I'm not sure about this... (and I'm sure if I'm not someone will jump all over it) but I think FTP uses 'sliding windows' for transfers. Maybe it's called something else these days though...

      Anyway, the basic idea has been around for a long time: the server will keep sending data packets even if the client has not acknowledged receiving some of the previous ones. There is usually a set window size... as in, it will send up to x packets ahead - after which, it will chill for a while and wait for responses to come back for previous ones.

      This keeps the connection somewhat saturated, and reduces a lot of the latency from back & forth acknowledgment messages.

      I don't know whether HTTP has this. I'm not even sure that FTP does, but I think so.

      Anyone more knowledgeable than I care to comment and/or provide a clearer description?

    17. Re:Http/Ftp which is slower? by Anonymous Coward · · Score: 0

      What you're describing is a function of TCP, not FTP. TCP is part of the transport layer and is used by *both* the HTTP and FTP application protocols. So both FTP and HTTP use the 'sliding windows'.

      Ya gots to look up those network reference models! Any you were right, somebody jumped all over it ;).

    18. Re:Http/Ftp which is slower? by ahkbarr · · Score: 1

      Deeeeaaahhhhh!?!?! UDP is connectionless.

      --
      Compared to war, all other forms of human endeavor shrink to insignificance. God, how I love it. - Gen. George Patton
    19. Re:Http/Ftp which is slower? by grolim13 · · Score: 1
      Anyway, the basic idea has been around for a long time: the server will keep sending data packets even if the client has not acknowledged receiving some of the previous ones. There is usually a set window size... as in, it will send up to x packets ahead - after which, it will chill for a while and wait for responses to come back for previous ones.

      It's TCP that does that, not FTP, so the same will apply to HTTP connections too.

  10. FTP by Blackbox42 · · Score: 1

    I'd implement FTP if your attempting to transfer large files. There are many excellent programs to resume FTP transfers yet I do not know of any such programs for HTTP transfers. Real Download might do it, but who in god's name would want to inflict that upon themselves.

    1. Re:FTP by molarmass192 · · Score: 2, Informative

      wget does both and does it well.
      http://www.gnu.org/software/wget/wget.html

      --

      Good people do not need laws to tell them to act responsibly, while bad people will find a way around the laws-Plato
    2. Re:FTP by CaptainBaz · · Score: 1

      wget -c

    3. Re:FTP by Anonymous Coward · · Score: 0

      Both Mozilla and IE will resume HTTP transfers when coaxed properly.

    4. Re:FTP by Anonymous Coward · · Score: 0

      opera's builtin download manager since version 5!
      suckas

    5. Re:FTP by Anonymous Coward · · Score: 0

      IE for all its sins can often restart downloads that have failed part way through.

  11. Both by Anonymous Coward · · Score: 0

    Granted I'm not an expert on the security flaws of either the HTTP or FTP protocols, but I can say that most commercial enterprises provide download services for both.

  12. protocol by Anonymous Coward · · Score: 0

    just dump passworded zips to usenet

  13. well, what're you trying to do? by twiggy · · Score: 4, Insightful

    As long as you're willing to secure your FTP server and do the simple stuff like watch out for file permissions - FTP is much better.

    HTTP is restricted by browsers, many of which will not support files larger than a certain size. Furthermore, FTP allows for features such as resume, etc...

    The real question, however, is what are you trying to use this for? What's your intended application?

    If it's a file repository for moderately computer literate people - FTP is definitely the way to go.

    If it's a place for average-joes to store pictures, maybe HTTP is your best option. Sacrificing a bit of speed and capabilities such as resume might be made up for with ease of use..

    --
    http://www.babysmasher.com
    http://www.openingbands.com
    1. Re:well, what're you trying to do? by ahknight · · Score: 1

      HTTP is restricted by browsers, many of which will not support files larger than a certain size.

      What you say?! I've downloaded ISO images in IE and Chimera with no issues. Never heard of this.

    2. Re:well, what're you trying to do? by Fastolfe · · Score: 5, Informative

      Furthermore, FTP allows for features such as resume, etc...

      So does HTTP. With the 'Range' header, you can retrieve only a portion of a resource.

      I agree that it really depends on the application, but for most practical "view directory, download file" purposes, there's no significant difference.

      If you wanted to interact with a directory structure, change ownerships, create directories, remove files, etc., it's generally easier to do this with FTP.

    3. Re:well, what're you trying to do? by a_p_irwin · · Score: 1

      Agreed, I think it really depends on who will be using the website. HTTP is very convenient for people who don't care for acronyms, but for people who do, they'll want FTP.

      --
      -- Cut and paste is not code re-use!
    4. Re:well, what're you trying to do? by linuxhack · · Score: 2, Informative

      Furthermore, FTP allows for features such as resume, etc...

      HTTP 1.1 supports resuming. I have setup Apache to serve movie files that I can play over the network. I can seek back and forth throughout the movie.

    5. Re:well, what're you trying to do? by jrstewart · · Score: 1
      HTTP is restricted by browsers, many of which will not support files larger than a certain size. Furthermore, FTP allows for features such as resume, etc...

      I don't think that any modern browser has file size restrictions. In HTTP 1.1 you can do resume, etc. I'm not aware of how you can do that in FTP but I'll take you at your word.

      For very large files (say anything that takes longer than 1min to download) I would expect there's practically no difference between a good FTP server and a good HTTP server. For small files HTTP will win due to cheaper startup costs (no login).

      I would use whichever you're more comfortable administering, which if you already have a website probably means HTTP.
    6. Re:well, what're you trying to do? by Anonymous Coward · · Score: 0

      So many download schemes force you to restart the download by going through some sort of start page.
      You might be able to do a resume on most of these if you were real clever, but it's not always straightforward.

    7. Re:well, what're you trying to do? by CTho9305 · · Score: 1

      One thing I've noticed is that most browsers download HTTP to cache first, so after getting a huge ISO onto one partition (where the cache is), it has to be copied to the other partition (waste of time). With FTP, the file gets downloaded directly.

    8. Re:well, what're you trying to do? by Hast · · Score: 1

      Actually he has a big point here.

      All browsers I've tried (Moz, Netscape, IE) use C:\ as a temporary cache for downloading. At least my C:\ tend to fill up pretty much so this can be a bother if I'm downloading big files.

      It's really annoying when you have several GB free on the disk you want to download to and get an "out of space" error. (Or in some cases it just drops the transmission and leave you with either a corrupt file or no file.)

    9. Re:well, what're you trying to do? by Anonymous Coward · · Score: 0

      USER ERROR!

    10. Re:well, what're you trying to do? by Nexx · · Score: 1

      Just a thought. With IE (not sure about 5, definitely on 6), you can designate the cache directory. I have mine set to the larger partition.

    11. Re:well, what're you trying to do? by smallpaul · · Score: 1

      HTTP is restricted by browsers, many of which will not support files larger than a certain size.

      How do you figure that? How is Curl or WGET "restricted by browsers?" HTTP also has resume.

    12. Re:well, what're you trying to do? by poulbailey · · Score: 1

      > All browsers I've tried (Moz, Netscape, IE) use C:\ as a temporary cache for downloading.

      Mozilla doesn't do this when downloading big files (I guess it's when the size of the file exceeds the size of the cache, but I'm not sure).

  14. wow, that's tough. by Lt+Razak · · Score: 2

    do as mysql site does and others... supply links for both options

  15. Use sshd by Anonymous Coward · · Score: 1, Interesting

    Its encrypted it is easy to get through firewalls, and it lets you run rsync (which lets you synchronise two machines automatically).

    Ftp is a major pain for firewalls because unless you use it in passive mode it opens another port back after the initial connection.

  16. IE by Anonymous Coward · · Score: 0

    IE, especially 6, doesn't seem to handle FTP well, so if you expect Windows users, consider IE performance

    1. Re:IE by Anonymous Coward · · Score: 0

      One should focus mainly on Windows users. Quite simply because they are the majority of any website's visitors.

    2. Re:IE by frovingslosh · · Score: 1
      IE, especially 6, doesn't seem to handle FTP well, so if you expect Windows users, consider IE performance

      Absolutely. I agree with the Anonymous Coward, consider IE performance and use FTP. Tell IE users they should use better tools.

      Or, you could just run Windows, share the file, and let all the hackers get a copy that way.

      --
      I'm an American. I love this country and the freedoms that we used to have.
    3. Re:IE by Narchie+Troll · · Score: 1

      55% of visitors to my web site use Linux/Unix/BSD. About 20% use some version of the Mac OS.

  17. Anecdotally, HTTP is more reliable by kisrael · · Score: 4, Insightful

    Whenever I see a list of FTP mirrors with one HTTP version, the HTTP version is faster and more reliable 9 times out of 10.

    It's generally simpler to get to from a browser, which is where 95% of people's online life is anyway. Yeah, you can rig up a FTP URL, but it seems a bit kludgey and more prone to firewall issues.

    --
    SO YOU'RE GOING TO DIE: The Comic for Dealing with Death
    1. Re:Anecdotally, HTTP is more reliable by BradleyUffner · · Score: 1

      I agree. Whenever I try to download the latest Linux ISO from a huge list of mirrors I almost always have problems with the FTP server. But the HTTP server usually works, and gives me a better transfer rate then the occasional FTP server that I do find that works.

    2. Re:Anecdotally, HTTP is more reliable by Anonymous Coward · · Score: 0
      Whenever I see a list of FTP mirrors with one HTTP version, the HTTP version is faster and more reliable 9 times out of 10.

      That's because everyone else is using the FTP mirrors!

      I use ftp for anything over 10k when its available.

    3. Re:Anecdotally, HTTP is more reliable by lasmith05 · · Score: 1

      I totally agree. Whenever a website offers FTP/HTTP downloads... get which one doesn't work or has reached its' user limit. FTP.

      --
      www.samuraidreams.com - My Blog
      www.samuraifiles.com - Get Some Videos Here
    4. Re:Anecdotally, HTTP is more reliable by jez9999 · · Score: 4, Insightful

      Whenever I see a list of FTP mirrors with one HTTP version, the HTTP version is faster and more reliable 9 times out of 10.

      I suspect that's because 99% of people are downloading from one of the FTP servers.

      It's generally simpler to get to from a browser, which is where 95% of people's online life is anyway.

      I honestly don't see how.

      Yeah, you can rig up a FTP URL, but it seems a bit kludgey

      ftp://www.mysite.com/file.zip

      How is that cludgey?

    5. Re:Anecdotally, HTTP is more reliable by Anonymous Coward · · Score: 0

      So you see two URLs for the same file from (for argument) the same server. You try both the FTP link and the HTTP link from your browser. Let's say (to be fair) you try them simultaneously. The HTTP download finishes first. Now you blame the FTP protocol because your HTTP user agent handles HTTP better than FTP? Surprise, surprise, web browsers can download via HTTP faster than via FTP. But try comparing a download of the same file from the same site via FTP using an FTP client and via HTTP using an HTTP user agent. I have found the FTP download to be faster. For a large download, I will take the time to drop down to a shell for ftp. The saved download time greater than the login time. Problems with firewalls? Most FTP clients can use passive mode (PASV), which is what web browsers do when using FTP. Firewalls that allow FTP tend to prefer passive mode. Now corporations that don't allow FTP at all, that's a different and misguided issue. I say misguided because blocking FTP and allowing SMTP and HTTP neither prevents downloads nor increases security inside the firewall. The proxy server can scane for and block file transfer with SMTP and HTTP? Okay, but not with HTTPS. Not sure what part you think is kludgy. As a simple example, check out the Apache proxy module or Squid. Enable the proxy and you get HTTP, HTTPS, and FTP in one fell swoop. Nothing kludgy there. And yes, big expensive commercial firewalls bundle Squid, so this is a valid corporate example. If you mean forming an FTP URL is kludgy compared to forming an HTTP URL, I don't understand what you mean.
      FTP
      HTTP
      What was kludgy about the FTP link that wasn't kludgy about the HTTP link? Now if the original poster is in a situation where 95% of the users don't know any interface outside of a browser, then the option of an HTTP link is a good idea. But the poster did not specify.

    6. Re:Anecdotally, HTTP is more reliable by p7 · · Score: 1

      I too always use the http download. My guess why it goes faster, is that I think people are bandwidth throttling their ftp connections and not their http connects.

    7. Re:Anecdotally, HTTP is more reliable by Imperial+Tacohead · · Score: 1

      The vast majority of people use IE, and IE's FTP support is some absurd joke. On my list of things that I'd really rather not do, downloading files using IE over FTP ranks only slightly lower than gouging my eyes out with a tree branch.

    8. Re:Anecdotally, HTTP is more reliable by kisrael · · Score: 1

      ftp://www.mysite.com/file.zip

      How is that cludgey?


      I guess I was thinking more of when you need to do something like ftp://anonymous@mysite.com/file.zip
      with the username there.
      (Incidentally, helpful hint: a lot of people don't realize that a simple drag and drop explorer like FTP thing is built into IE, just do ftp://yourusername@yoursite.com Sometimes easier to use than firing up WS-FTP or command line ftp.)

      --
      SO YOU'RE GOING TO DIE: The Comic for Dealing with Death
    9. Re:Anecdotally, HTTP is more reliable by nfk · · Score: 1

      ranks only slightly lower than gouging my eyes out with a tree branch

      Can be fun though.

  18. HTTP is faster by CAPSLOCK2000 · · Score: 1, Interesting

    Actually, http is faster. FTP keeps open another connection to control the file transfer. This connection also uses bandwith, just a little bit, but enough to matter.

    1. Re:HTTP is faster by Anonymous Coward · · Score: 0

      Are you kidding? No commands are executed while transferring files except you want to stop the transfer. And you don't really think the TCP keepalives are enough to matter...

    2. Re:HTTP is faster by Anonymous Coward · · Score: 0
      You are correct in that an ftp client will make two connections to the server, but that doesn't make a difference in transfer speed.

      Connection1: The control connection. This is the connection you use to send commands.
      Connection2: The data connection. This is the connection data is sent on. While data is being sent on this connection the 'control' connection is idle.

      Connection1 does nothing to slow down Connection2.

    3. Re:HTTP is faster by Anonymous Coward · · Score: 0

      Reusing connection1 is faster because it's already performed slow-start and MTU detection, while connection2 has to repeat them.

    4. Re:HTTP is faster by Hast · · Score: 1

      An HTTP header is on the order of 100B that's not nearly enough to be put into multiple packets. So when the transfer starts you are still in the same position as for FTP.

      And seriously, for files of any useable size the phase of the moon is likely to have more impact on transfer speed.

    5. Re:HTTP is faster by Anonymous Coward · · Score: 0

      Pedantic you are, but never the less correct.

      Perhaps more significant is that HTTP supports transparent compression (eg mod_gzip under Apache) that can benefit files not already compressed.

      If they are already in a ZIP or TAR.GZ the argument about FTP's extra integrity checks are moot too, as you've got the checksum in the ZIP itself to protect you over and above TCP reliability.

      Protocols over SSH (like SFTP) can gain from its compression too, but it usually operates on smaller blocks and doesn't compress as well.
      The "byterange" extensions in HTTP not only permit resuming downloads just like FTP, but plugins like Acrobat use them to do partial fetches; in effect streaming the PDF page by page as you actually read it.

      By far the biggest advantage of FTP is the ability to do uploads; without that requirement the firewalling problems make it far less elegant if you had to choose one over the other.

  19. HTTP by mugnyte · · Score: 1


    hey! nobody likes a fence sitter.

  20. go with http by skelley · · Score: 0

    a) it is more easily secured

    b) it is easier for people to use (ftp url's tend to confuse some people)

    c) it seems like it is easier to overwhelm an ftp server with traffic than it is a webserver

  21. what are you serving again? by Telastyn · · Score: 3, Funny

    1-6mb files?
    heh, most 1-6mb files I see are on irc fserves :P

    1. Re:what are you serving again? by fredistheking · · Score: 1

      Nah, most files on fservers are 10-20MB. Most mp3s are between 1 and 6 MB, however. =)

  22. Don't let "Dinosaur" daunt you, .... by dr-suess-fan · · Score: 1

    If the right tool for the job is efficient, let
    them name-call all they want.

    As far as I've seen, HTTP for FTP type operations
    is still somewhat new. While FTP has it's firewall and security issues, It is still used a whole lot
    more than HTTP IMHO.

    If this is your first FTP application and you are already running HTTP alot, you might consider just
    using HTTP. If you plan to do alot of FTP hosting, I would suggest cracking the FTP server books.

    HTH.

  23. Another option by Anonymous Coward · · Score: 0

    what about gopher?

  24. FTP by Anonymous Coward · · Score: 0

    I'll be leaving my current DSL provider because they will be removing FTP from the standard services they provide. (SBC to SBC Yahoo!)

  25. for what its worlth by dunedan · · Score: 3, Informative

    Those of your customers who don't have fast access to the internet may appreciate even a slightly faster standard.

  26. Idiots by Anonymous Coward · · Score: 0

    HTTP is not "slower", "less reliable" or "amateur", and the people who say that are idiots. If it was "slower" or "less reliable", than why would web sites distribute graphics, or binary downloads, or banking information, or purchasing with it ???
    FTP is outdated, but useful if you want the user to be able to navigate a directory structure with a simple command line client. I'm sure a lot of free software developers prefer FTP, at least ones who were on the net before HTTP was common. But it is brainless to say that HTTP is "less reliable" or any such bullshit. This web page came up for you, didn't it ???

    1. Re:Idiots by ETEQ · · Score: 1

      Well, for pictures and HTML, obviously HTTP is better - it is after all what it was designed for. This web site came up, sure, but this web site isn't a very large file. No one doubts that HTTP is better for web pages - I'm pretty sure the question was asking about larger file downloads, the purpose FTP was designed for...

    2. Re:Idiots by Anonymous Coward · · Score: 0

      Bits are bits. HTTP doesn't degrade for larger resources any more than FTP does. In both cases you're sending the same octets over a TCP connection.

  27. Why isn't there SFTP support from the browser? by Anonymous Coward · · Score: 1, Interesting

    My god i wish there was! Every time i need it, i have to go look for putty, and download psftp. Maybe we should write a patch for mozilla?

    1. Re:Why isn't there SFTP support from the browser? by Anonymous Coward · · Score: 0

      Konqueror has sftp support.

    2. Re:Why isn't there SFTP support from the browser? by bunratty · · Score: 1

      It's bug 85464 in Bugzilla. Here's a link to it: http://bugzilla.mozilla.org/show_bug.cgi?id=85464

      --
      What a fool believes, he sees, no wise man has the power to reason away.
    3. Re:Why isn't there SFTP support from the browser? by Anonymous Coward · · Score: 0

      Actually, thats about FTP over SSL, usually called ftps, but the author seems to have confused the two names.

      sftp = secure ftp, as in secure shell (ssh).
      ftps = ftp over SSL, as in https, telnets

  28. Re:Jealous? by Anonymous Coward · · Score: 0, Troll

    But what am I?

  29. HTTP is fine by ahknight · · Score: 4, Informative

    HTTP does not have firewall issues, does not need authentication, does not (by default) allow directory listings, and is the same speed as FTP. It's a good deal for general file distrubution.

    FTP is quickly becoming a special-needs protocol. If you need authentication, uploads, directory listings, accessability with interactive tools, etc. then this is for you. Mainly useful for web designers these days, IMO, since the site software packages can use the extra file metadata for synchronization. Other than that, it's a lot of connection overhead for a simple file.

    FTP does have one nice advantage that HTTP lacks: it can limit concurrent connections based on access privleges (500 anonymous and 100 real, etc.). Doesn't sound like you need that.

    Go with HTTP. Simple, quick, anonymous, generally foolproof.

    1. Re:HTTP is fine by Voytek · · Score: 5, Informative

      [SNIP]
      does not (by default) allow directory listings
      [SNIP]

      That is a dangerous and very incorrect assumption which has nothing to do with http and everything to do with your http server.

    2. Re:HTTP is fine by ahknight · · Score: 2, Informative

      Which is why I said "by default."

    3. Re:HTTP is fine by kwerle · · Score: 2, Informative

      FTP is quickly becoming a special-needs protocol. If you need authentication,

      Yeah, if you need CLEAR TEXT auth, FTP is for you. If you want SSL auth, maybe enable auth for your http server.

      uploads, directory listings,

      Which http can do fine, thanks.

      accessability with interactive tools, etc. then this is for you.

      Dunno about this.

      Mainly useful for web designers these days, IMO, since the site software packages can use the extra file metadata for synchronization.

      I'd push for SSL webdav in an instant...

      Sorry, but I live behind various firewalls and am sick to death of FTP. The sooner it dies, the better.

      (best not to take this post too seriously - FTP just really pisses me off)

    4. Re:HTTP is fine by qnonsense · · Score: 2, Informative

      But "by default" for what server? The HTTP protocol may or may not recommend DIR listings by default, but that's beside the point. Some servers allow it "by default," some don't. Check your server.

      --
      There comes a time in every man's life when he must say, "No mother! I do not want any more Jell-O!"
    5. Re:HTTP is fine by NineNine · · Score: 1

      HTTP does not have firewall issues, does not need authentication, does not (by default) allow directory listings, and is the same speed as FTP. It's a good deal for general file distrubution.


      You've got your layers all messed up. First off, HTTP has nothing to do with firewalls. Firewalls work with port numbers... HTTP as well as FTP can work on any port... they're just standardized. Also, you may be talking about passive FTP transfers which use multiple ports. Again, nothing to do with the protocol. Turn off passive if you're having firewall problems, or switch ports.

      HTTP doesn't need authentication. Neither does FTP. They can both work anonymously. They both require an anoymous user with very limited rights on the server.

      Directoy listings has nothing to do with HTTP. It has everything to do with the web server.

    6. Re:HTTP is fine by Drishmung · · Score: 1
      Not quite. FTP mandates DIR, and HTTP doesn't say anything about it at all.

      Part of the trouble with FTP is that it has a whole bunch of options, with variable support on different servers. E.G. while restart capability is in the standard, it's not mandated that it be supported. Even if the server supports it, the client may not.

      FTP is an essentially interactive protocol. Log onto the box, navigate to the correct directory, put/fetch the file, log off.

      It embeds port numbers into the data (actually control) stream, so is NAT unfriendly (but then, it predates NAT). Since it is ubiquitous, every NAT implementation supports FTP, but if you are behind a particularly NAT unfriendly firewall you are not going to get through.

      HTTP, as mentioned, does nearly everything that FTP does, and moreover mandates much more than FTP. Of course, performance may differ, but that ultimately comes down to server and client implmentations, not the underlying efficiency of the protocols themselvs. When it comes to transfering data, both of them are using TCP.

      HTTP does have one more advantage though: it's more likely to be cached. So if your client is behind a cache and someone else has already got a copy, they will get dramatically better performance. Some caches will also handle FTP, but not as many.

      --
      Protoplasm. Quiet Protoplasm. I like quiet protoplasm.
    7. Re:HTTP is fine by kasperd · · Score: 4, Informative

      The HTTP protocol may or may not recommend DIR listings by default

      No, the HTTP protocol does not even specify the concept of a directory listning. Some servers can generate an HTML file from the directory listning, but that is all up to the server, it can generate that file as it likes or even just serve an error.

      --

      Do you care about the security of your wireless mouse?
    8. Re:HTTP is fine by Anonymous Coward · · Score: 0

      Even with PASV, you have to proxy FTP or allow outbound connections to arbitrary TCP ports (the server could bind the data connection to whichever port it feels like allocating). Without PASV, a proxy is essential unless your "firewall" is going to allow inbound connections to arbitrary ports! HTTP is much easier to firewall.

    9. Re:HTTP is fine by Anonymous Coward · · Score: 1, Insightful

      A HTTP server is perfectly within its rights to answer 503 Service Unavailable and disconnect if too many unauthenticated requests are going on.

    10. Re:HTTP is fine by Anonymous Coward · · Score: 0

      > Sorry, but I live behind various firewalls and am sick to death
      > of FTP. The sooner it dies, the better.

      Why don't you die? FTP is probably older than you and yet you
      wish it to be dead. Do you wish your grandmother was dead you
      insensitive clod?

    11. Re:HTTP is fine by Anonymous Coward · · Score: 0

      I guess kwerle has never heard of ftps.

    12. Re:HTTP is fine by Anonymous Coward · · Score: 0


      Er. Apache, for example, does "by default" allow directory listings. I understand it is the most used webserver out there, so says netcraft.

      You were saying?

    13. Re:HTTP is fine by Nexx · · Score: 1

      Well, if you switch off PASV, you'll have issues with poor saps like me who live behind a stupid NAT that doesn't understand why the silly FTP server is now trying to make a connection to me.

      Actually, FTP is only here by inertia and laziness on the part of admins to set up something like rsync.

    14. Re:HTTP is fine by ahknight · · Score: 2, Interesting

      You're being awfully pedantic about what I said, but I suppose I can be equally pedantic in return...

      My layers are not "messed up" in any way. HTTP and FTP have everything to do with firewalls because the protocols have recommended ports they run on, and HTTP sticks to one port and, thus, can be easily allowed in firewalls. FTP's use of ports depends heavily on the protocol since it specifies the use of both incoming and outgoing connections on various ports for the whole schebang unless you use passive, which is a setting, and by far not the default. Even with passive, the protocol embeds ports and is generally firewall unfriendly to firewalls, hence me saysing FTP is not firewall friendly.

      Also, directory listings, as talked about elsewhere in this article, have a lot to do with HTTP as it does not have a specification for them whereas FTP does. It's a protocol thing.

      Oh, and you would turn on passive if you had firewall problems, but I'm assuming that to be a typo. Long day for me, too.

    15. Re:HTTP is fine by Anonymous Coward · · Score: 0

      WebDAV is Standards Track. FTP's directory listing support is largely useless because it leaves the format completely unspecified.

    16. Re:HTTP is fine by iabervon · · Score: 1

      FTP is marginally better supported by interactive text clients, which means that geeks who haven't gotten any new software in the past decade will find it more convenient.

      Really, it doesn't make sense to call HTTP wimpy when it's what's used to distribute The linux kernel, perl,
      glibc, and so forth.

    17. Re:HTTP is fine by Anonymous Coward · · Score: 0

      It's called WebDAV.

    18. Re:HTTP is fine by Anonymous Coward · · Score: 0

      Whatever. The result is still the same; there is no "by default." So just get over it, and check your server's "default."

    19. Re:HTTP is fine by LadyLucky · · Score: 1
      Hey java programmers!! Ever done this?

      InputStream in = Thread.currentThread().getContextClassLoader().get Resource( "directory" );

      then read the contents of the input stream. When the file you made a connection to is a directory (at least, Sun VM on windows), you get an HTML directory listing. Nerf. We had a security hole in our app for a while based on this.

      --
      dominionrd.blogspot.com - Restaurants on
    20. Re:HTTP is fine by Reziac · · Score: 1

      I see this all the time. Wonderful for snooping in random subdirectories. :)

      --
      ~REZ~ #43301. Who'd fake being me anyway?
    21. Re:HTTP is fine by slim · · Score: 2, Informative

      The HTTP protocol may or may not recommend DIR listings by default

      No, the HTTP protocol does not even specify the concept of a directory listning. Some servers can generate an HTML file from the directory listning, but that is all up to the server, it can generate that file as it likes or even just serve an error.

      Exactly right, and the point is that there is no explicit standard (the may be a few de-facto standards) to say what an HTML directory listing looks like, so coding the equivalent of an FTP client's "mget" command becomes a new job for every site.

      My advice is, if you think your users would like mget or its equivalent, then either give them FTP or think hard about how you could provide the same functionality using HTTP/HTML.

      If they don't need mget, HTTP might be fine.

    22. Re:HTTP is fine by Anonymous Coward · · Score: 0

      >FTP does have one nice advantage that HTTP lacks: it can limit concurrent connections based on access privleges (500
      anonymous and 100 real, etc.)
      Two PHP scripts able to deal with that in more flexible and comfortable fashion than any FTP server.

      /usd

    23. Re:HTTP is fine by kasperd · · Score: 1

      so coding the equivalent of an FTP client's "mget" command becomes a new job for every site.

      Not if you do it right the first time. Surely directory listnings generated by different servers looks different, but all of those I have seen had one thing in common: They contains links to the files in the directory. So to produce a directory listning from the HTML file is not really a problem if you only need filenames. Just parse the HTML documents and find all links. Remove those links not pointing to files in the directory in question, and remove doubles if any. And once you actually get the files, be prepared to handle nonexisting files correctly.

      --

      Do you care about the security of your wireless mouse?
    24. Re:HTTP is fine by slim · · Score: 2, Informative

      Not if you do it right the first time. Surely directory listnings generated by different servers looks different, but all of those I have seen had one thing in common: They contains links to the files in the directory. So to produce a directory listning from the HTML file is not really a problem if you only need filenames. Just parse the HTML documents and find all links. Remove those links not pointing to files in the directory in question, and remove doubles if any. And once you actually get the files, be prepared to handle nonexisting files correctly.

      It can be done, but it can't be done /trivially/ and the scope for automation is limited. There's nothing /explicit/ in the HTML that states categorically that it's a directory listing, for example, so you need some kind of human input to say "yes, this is a directory listing, use it as a list of stuff to fetch", or "no, this is data I want, fetch it and save it".

      And, more to the point, although there are tools to let you "get everything linked off this chunk of HTML", they're not ubiquitous the way mget is.

    25. Re:HTTP is fine by autocracy · · Score: 1
      HTTP auth isn't all that secure either. Frankly, HTTP's upload mechanism is rather sucky as well. And FTP user/pass exchanges can certainly be dropped into an encrypted layer, the same way HTTP works with SSL.

      "Sorry, but I live behind various firewalls and am sick to death of FTP. The sooner it dies, the better." Maybe your firewall is stupid, or is intentionally denying it?

      --
      SIG: HUP
    26. Re:HTTP is fine by kwerle · · Score: 1

      HTTP auth isn't all that secure either.

      Dunno how you can say that - you get as many bits as you want. Certainly, *I* bank using https with no fear.

      Frankly, HTTP's upload mechanism is rather sucky as well.

      Granted.

      And FTP user/pass exchanges can certainly be dropped into an encrypted layer, the same way HTTP works with SSL.

      See also sftp, scp, and whatever others there are out there. But note the adaption rate - not real good. Certainly my browser doesn't know what that protocol (sftp) is.

      "Sorry, but I live behind various firewalls and am sick to death of FTP. The sooner it dies, the better." Maybe your firewall is stupid, or is intentionally denying it?

      The thing that pisses me off most is CPAN updates. I have to tell every damn thing I use that I want PASSIVE ftp. I don't understand why that is not the default. That's not really the fault of the protocol - it's just that ftp is so damn old, and was designed before firewalls and NAT was common (or existed, really). Anyway, http just works.

      [sorry if this got double-posted - I may have type-o'd ]

    27. Re:HTTP is fine by autocracy · · Score: 1

      Umm... https != http. https is http in an SSL layer... so I maintain that http auth sucks, and the security is given by SSL, just as I mentioned above.

      --
      SIG: HUP
  30. Firewalls by Anonymous Coward · · Score: 0

    HTTP file transfers are easier to get through corporate firewalls.

  31. "Files," eh? by Anonymous+DWord · · Score: 5, Funny

    1 to 6 megs, huh? Why not use Kazaa like everybody else? :-P

    --
    "If he thinks he can hide and run from the United States and our allies, he's sorely mistaken." Bush on bin Laden
    1. Re:"Files," eh? by yaiba · · Score: 2, Interesting

      kazaa sucks try OpenFT much better then kazaa

    2. Re:"Files," eh? by Soul-Burn666 · · Score: 1

      With all respect to OpenFT, what KaZaa has that other networks don't have is a huge user base.

      At the current time, KaZaa has:
      3,281,199 users online
      sharing 676,707,644 files (5,466,368 GB)

      That's a whole lot of data!

      For anything except music, KaZaa is the best solution. Obviously it has the big disatvantage that it works on Windows only, and there's no "sattelite" like option, but the advanatages surpass the disatvantages.

      --
      ^_^
  32. Looks??? by TJ6581 · · Score: 1

    Last time I checked the best way to evaluate a technology was to see if it meets your needs in a secure fashion. Calling FTP a "Dinosaur" shows that you are only interested in being 3733t and not being really secure. If you really want to impress the script kiddies on IRC try something challenging like tunneling FTP through SSH or use something like SCP to transfer files.

    --
    "Freedom of speech has always been the abstract red-headed stepchild of the Constitution"
    -Suck
  33. Security is the only worry by brokenin2 · · Score: 2, Informative
    If you're just looking to transfer files back and forth, then FTP is the way to go.. If you only want to send out files, you might want to stick with the warm fuzzy feeling by knowing you've only got apache exposed to the outside world.


    We run ftp, but we have to have people send us files, and also distribute them on a regular basis.The client software available for doing the sending and receiving on a regular basis is a lot better for FTP.. it's pretty klunky, but it is very doable for http.


    We just choose to stay on top of our ftp updates.

    1. Re:Security is the only worry by lactose99 · · Score: 1

      If you only want to send out files, you might want to stick with the warm fuzzy feeling by knowing you've only got apache exposed to the outside world.

      Even better, use a chrooted thttpd without all of the fuss of apache plus a jail environment. It serves quite well for one-way distribution of publicly-available files.

      --
      Fully licensed blockchain psychiatrist
  34. Boy do I feel the pain... by Anonvmous+Coward · · Score: 5, Funny

    "HTTP is amateur and will make you look a wimp"

    You really gotta watch out for things like this. I know one guy that got a 'click me' sign on his back because he used HTTP instead of FTP.

  35. Why does it matter? by Arctic+Fox · · Score: 1

    I'm really surprised at this question. Those are small files. Serve them any way you want. If I were posting ISOs or something, it seems more "natural" to serve via FTP.
    However, I'm sure you'll be serving them via a "Click to Download" link, which it doesn't matter. You click, the browser downloads. End of story.
    I'm really interested in Missionary vs Doggy Style. Missionary is traditional, old-skool, and makes me feel dominant. However, doggy style gives me that porn star class that I crave in my lovemaking sessions, not to mention the hairpulling and ass-slapping possibilities. But you dont see me asking Slashdot. Even though it is "stuff that matters".

  36. Eh, FTP by rice_web · · Score: 1

    I personally loathe FTP, except the times that I need to connect to my file server--which it actually does quite well. I am running a Linux box that stores all of my music, my documents, and more, and I simply connect to that machine when I'm at work or elsewhere. So, just for this reason alone, FTP is excellent. In fact, it's actually saved me a few times, when I've noticed that I hadn't printed a document or finished a website, and I needed my files.

    However, the security holes of FTP would prevent me from ever keeping FTP connections open on high-traffic websites. Yes, I maintain FTP accounts on my servers to allow updating the site, but no guest accounts are active (not that my server is magically "safe"), and the sites hardly receive an ounce of traffic.

    --
    The Political Programmer
  37. Transparent by mao+che+minh · · Score: 5, Insightful
    It's almost transparent - most people (99.9%) don't know the difference between http and ftp. The .1% that "gets it" don't care what you're using as long as the pr0n gets from point A to point B (point B being my computer, which I lovingly call "My Pr0ndex").

    And I wouldn't care about the opinion of someone who would actually judge you over what friggin protocol you use to provide downloads. Such an utter nerd is somethig that I can not relate too. Maybe after I use Linux for a few more years, who knows.

  38. What do you want to do? by fwankypoo · · Score: 5, Informative

    The question is, "what do you want to do?" I run an FTP server (incidentally affiliated with etree.org, lossless live music!) and I need what it can give me. Namely I need multiple classes of login, each with a different

    1) number of available slots
    2) speed limit
    3) premission set

    Some people can only read files at 60KB/s, some can read and write (to the upload dir) at the same speed, come can only browse, etc. etc. For this kind of a setup, FTP is great _IF_ you keep your software up to date; subscribe to bugtraq or your distro's security bulletin or both.

    On the other hand, HTTP is great when you want to give lots of people unlimited ANONYMOUS access to something. I'm sure there is a way to throttle bandwidth, but can you do it on a class by class basis? In proftpd it's a simple "RateReadBPS xxx" and I'm set.

    As always, choose the tool that fits _your_ purpose, not the one that everyone says is "best"; they both have good and bad qualities. And http can be just as secure/insecure as any other protocol.

    --
    The time of day is 29:33.
    1. Re:What do you want to do? by Anonymous+Hack · · Score: 1
      On the other hand, HTTP is great when you want to give lots of people unlimited ANONYMOUS access to something. I'm sure there is a way to throttle bandwidth, but can you do it on a class by class basis? In proftpd it's a simple "RateReadBPS xxx" and I'm set.

      Cookies, my friend :-) You don't even need to use a login if all you want is to keep tabs on a person's individual connection. Use script to check the cookie (virtually nil overhead) and serve up the file.

      --
      I got a sig so you would remember me.
    2. Re:What do you want to do? by mattdm · · Score: 1

      On the other hand, HTTP is great when you want to give lots of people unlimited ANONYMOUS access to something. I'm sure there is a way to throttle bandwidth, but can you do it on a class by class basis?

      Sure, you can do all of that. Apache is very flexible. Try mod_throttle,
      for example.

    3. Re:What do you want to do? by Anonymous Coward · · Score: 0

      You bring a great point in HTTP's favor -- Web servers are shitloads more extendable than FTP servers.

      Why worry about a bloated, buggy, configuation nightmare FTP server when you can just implement your security policy with a script and run inprocess in your HTTP server?

      HTTP is also far easier to integrate with real-world userlists (databases & LDAP, not /etc/passwd).

    4. Re:What do you want to do? by Permission+Denied · · Score: 1
      I'm sure there is a way to throttle bandwidth, but can you do it on a class by class basis?

      You should look into thttpd. It has some very robust throttling features and a concurrency model that makes sense. It's also usually faster than apache for just downloading files (and if you're just serving up files and not dynamic content, there's not much point to using apache).

      Here is the section that explains how throttling works. From what I understand you would like to do, you would set up some directory trees:

      site.com/anonymous/
      site.com/registered/
      site.com/paid/
      etc.

      Each of those directories contains symlinks to the files you're serving, and a .htaccess password file (the symlinks point into the /anonymous section (or whatever is the "lowest" class) so it won't help people if they start guessing URLs and it's still within the site's main directory so you can still use thttpd's chroot feature). You then use thttpd's throttling features to limit the bandwidth in each directory hierarchy however you like (using simple URL patterns). Users will like it since when they click on a link, it just pops up a standard password dialog box and the browser keeps track of the password if they download multiple files in a hierarchy.

      This will literally take you only minutes to set up: thttpd has no dependencies or important compile-time options to worry about, it compiles in seconds and it has one central configuration file that's small, simple and well-documented. In addition, thttpd has never had any major security holes, it has an excellent concurrency model that keeps serving up files without bogging down the machine even under immense loads, and the throttling features are well thought-out

    5. Re:What do you want to do? by fwankypoo · · Score: 1

      That all sounds good, but being in the etree.org community, the _standard_ is to use ftp. It works well for the siteops and it works well for the users, once they clear that initial roadblock of learning an FTP client.

      Interestingly enough, the only other emerging distribution method is BitTorrent - the distributed model helps a lot for people on cable/adsl, who do not have the luxury of a fat university pipe like me.

      In any case, like I said, use the tool that suits the purpose.

      --
      The time of day is 29:33.
    6. Re:What do you want to do? by Herkules · · Score: 0

      Please its not like thear are no FTP servers that can use LDAP.

      Try WU-FTP if you need one.

      --
      CIA Factbook 2002 (US):"Since 1975, practically all the gains in household income have gone to the top 20% of households
  39. 10/100BaseT specs. by Anonymous Coward · · Score: 0

    If you want the real answer, it's ftp. All the way. Unless we're talking Gig-E. The specs for 10BaseT and 100BaseT will only allow protocols such as ftp to even get close the the supposed throughput.

    I'm sure others can add details to this.

    1. Re:10/100BaseT specs. by Anonymous Coward · · Score: 0

      Detail 1 - you're a cracksmoker.

  40. Who is Your Audience? by dasheiff · · Score: 1

    Though I'm tempted to say for a less skilled downloading community you should use http and the reverse for ftp. But now I'm thinking that doesn't quite fit since one can always wget a http file (or ftp file for that matter) and one can use ftp though a web browser.

    Eh, my vote is https, more secure, and maybe more manly since it's not port 80? Of course moving out a directory structure is more natural for me than to click on pretty little icons.

    Therefore I conclude use ftp (or sftp) if you got users the like command prompts. Otherwise just go for the one whose logs are more fun for you to read.

    1. Re:Who is Your Audience? by WetCat · · Score: 1

      BTW, moving from http to https is MUCH easier than
      moving from ftp to... what? ftp has no corresponding
      widely used secure protocol,sftp is special case and
      is not widely accepted.

    2. Re:Who is Your Audience? by Anonymous Coward · · Score: 0

      so what does port 80 have to do with security?

      you can put http on port 31337 and it won't make it any more secure. or cool.

      http is great for serving anonymous files. never fails for me, ftp has it's complications... but is good for serving a *large numbers* of files. I've never seen a web browser with a download queue.

    3. Re:Who is Your Audience? by khuber · · Score: 1
      I've never seen a web browser with a download queue.

      Jeez, Mozilla's built in download manager and download manager add ins for IE must not exist if you haven't seen them.

      -Kevin

  41. SCP by elliotj · · Score: 5, Interesting

    If you're only offering files to a group of users who you can give passwords to, you could even use SCP. (Secure copy...uses sshd on the server side)

    It all depends on the application. I only use SCP to move files around if I have the choice, just because I like better security if I can have it.

    But if you want to offer files to the public, I'd recommend offering both FTP and HTTP so people can use the most convenient.

    1. Re:SCP by geesus · · Score: 0

      Running an ssh server isnt all its cracked up to be security wise. If a person has a username and a password, depending on the configuration that user could tunnel connections to any host, or even invoke a shell (even if youve set thier default shell to /usr/bin/false or something like that). But again thats configuration dependant.

      Use things dependant on how much you trust the users. If they are anonymous users from the net, Then dont trust anybody. Use HTTP because its passwordless and unless you use some funky POST stuff, or some .htaccess stuff, or something equivilant, then there is no distinction between privliged users and normal users. HTTP may be for the less clued, but it does the job and it does the job well

      --
      Gnome wasnt built in a day.
    2. Re:SCP by MyHair · · Score: 1

      SCP is very cool, but the encryption/decryption eats up processor time. If you're offering 1-6MB files to many users you could probably choke a machine pretty quickly.

    3. Re:SCP by Daniel+Phillips · · Score: 1

      If you're only offering files to a group of users who you can give passwords to, you could even use SCP. (Secure copy...uses sshd on the server side)

      Scp is a horribly slow way to transfer a file, 5 times slower than http or ftp (which are nearly the same, for big files) on my network. Use scp if you need the security, or if you don't care about bandwidth sucking and just want the nice easy interface.

      --
      Have you got your LWN subscription yet?
    4. Re:SCP by Paul+Komarek · · Score: 1

      I haven't had the slowdown problems you're describing. I don't see exactly the same times, but the difference is rather small. I expect it's a client or server cpu thing. Check if using lighter encryption helps, for instance, compare

      scp foo@bar:~/baz .

      with

      scp -c blowfish foo@bar:~/baz .

      If you are using really small files for testing, then the initial handshake alone could swamp your comparison. Try something in the 50MB range, or larger.

      -Paul Komarek

    5. Re:SCP by Daniel+Phillips · · Score: 1

      I haven't had the slowdown problems you're describing. I don't see exactly the same times, but the difference is rather small.

      OK, I reran the tests, and the difference is small as you say. For root_fs, a 105 Meg file, copied to a 500 Mhz laptop from a dual 1 Ghz server over 100 MHz ethernet, I get:

      time scp deathray:bigfile .
      real 0m20.926s

      time scp -c blowfish deathray:bigfile .
      real 0m16.672s

      time wget http://deathray/bigfile
      real 0m15.945s

      --
      Have you got your LWN subscription yet?
    6. Re:SCP by Paul+Komarek · · Score: 1

      We have some old 233MHz Pentiums in our lab, one of which had the cd burner. When transferring Red Hat isos or some such, even ftp couldn't keep up with the network (100Mbit) -- it would hang around 6MB/sec (and using ftp was a pain for various uninteresting reason). Using -c blowfish, I would get around 5MB/sec, which was close enough for me.

      I'm a little jealous of your 500MHz machine. =-)

      -Paul

  42. HTTP/1.1 by Anonymous Coward · · Score: 0

    I would consider an HTTP/1.1 server a better choice than an FTP server. HTTP works with firewalls better. It can support "resumable" downloads, by requesting byte ranges, although I'm not sure if there's a client that can do this for file transfers. I don't understand how it would be slower than FTP -- it's just a byte stream.

    Of course, I can't "mget" files from a webserver using my "http" command-line client, but I can give multiple URLs to wget to accomplish the same thing.

  43. 500th's person to say it, I'm sure... by morgajel · · Score: 1

    but use scp. SCP is part of the SSH suite.
    as a matter of fact, I mention it in my beginners walkthrough of ssh on my website. I'd suggest checking it out if you got the time.

    and yes, it's probably got incorrect information, but it's sole purpose is to teach my future father-in-law how to use ssh.

    --
    Looking for Book Reviews? Check out Literary Escapism.
    1. Re:500th's person to say it, I'm sure... by Anonymous Coward · · Score: 0

      slashreader@draccus.net
      blah blah blah. advertise somewhere else.

    2. Re:500th's person to say it, I'm sure... by Anonymous Coward · · Score: 0

      but use scp. SCP is part of the SSH suite.

      yeah, but only if you use the Commercial SSH.

      OpenSSH won't connect to a commercial SSH server via SCP. (However, SFTP works fine.)

  44. who's going to be downloading? by Whitecloud · · Score: 1

    Who are your users? If you are supplying 1-6mb pdf's of recipes for housewifes you probably don't want to use ftp...it will just create confusion and complicate the user experience. If, on the other hand, you are sharing custom software then you can guess that your users will be more experienced with computers and comfortable using ftp.

    --

    Do you need a website upgrade?

  45. ohhhhhh, new icon? by Anonymous Coward · · Score: 0

    where'd that "Software" topic icon come from?

  46. Make your life simpler: use HTTP by kazrak · · Score: 5, Insightful
    I question why people think FTP is 'faster' or 'more lightweight' than HTTP. HTTP is a fairly lightweight protocol, and what overhead it does have is massively outweighed by the size of the files when you get into the multi-megabyte range. Add in that everything can be done in one transaction via HTTP (compared to logging in, changing to the right directory, activating passive mode if needed, starting the transfer, opening up a second TCP connection for the data transfer, etc. for FTP) and I really don't see a performance advantage to FTP.

    Security-wise, HTTP is a big win over FTP if only because it makes your port-filtering easier - "allow to 80" is simpler and less likely to cause unintended holes than all the things you need to do to support FTP active and passive connections. Certain FTP server software has a reputation as having more security holes than IIS, but there are FTP servers out there that are as secure as Apache.

    1. Re:Make your life simpler: use HTTP by wfrp01 · · Score: 1

      I agree. When you say http is 'simpler', though, I think that presumes that you're already running an http server anyway (so why run two apps?). However, if you have never run a webserver, and just want to serve files, an ftp server is probably simpler to set up. (umm, or I suppose you could just do 'apt-get install apache' - butta bing, butta boom) Of course, security wise, you can screw either one up pretty easily if you don't know what you're doing.

      My preference: don't use either one. Use https. Apache + SSL (+ mod_auth_pam if you need to restrict access). I'm sure some jackass is going to give me some bunk about processor overhead for SSL, but give me a break. Put those GHz to good use, for christsakes...

      apt-get install apache-ssl libapache-mod-auth-pam. Keep in mind if you use mod_auth_pam and use a shadow password file, that you need to give the user your webserver runs as read permission to the shadow password file.

      --

      --Lawrence Lessig for Congress!
    2. Re:Make your life simpler: use HTTP by wfrp01 · · Score: 1
      BTW, before someone says "but that's insecure because I might be too dumb to properly configure my webserver and someone will download my shadow password file and find all my poorly chosen passwords":
      <Files "shadow">
      Order allow,deny
      Deny from all
      </Files>
      --

      --Lawrence Lessig for Congress!
  47. Well... by fredrikj · · Score: 1

    1-6 MB? Use HTTP. It's probably more convenient for everybody, for instance there's no login procedure/delay for the end user. With files no bigger than that, people won't have the need to resume interrupted downloads either (the biggest advantage of FTP is the ability to do that when downloading a CD image :).

  48. Of all the morons by Anonymous Coward · · Score: 1, Insightful

    There are two things to consider:
    * protocol
    * application

    Neither ftp nor http are `full of holes'.
    It very much depends which specific server you are using. Now, IIS is full of holes, and some ftp servers have been full of holes in the past, and still are... and there has been holes in apache as well.

    As far as the functionality goes, ftp indeed provides some very useful functionality for file transfers: the ability to resume an interrupted transfer. Most servers and most clients support it nowadays and that is really VERY useful.

    ftp is slightly more difficult to set up when firewalls are in effect, because of the two actual tcp channels used (data+control), which means the firewall needs to know about ftp (or it can get very unpleasant: active/passive protocols tricks will get you through one firewall, not through two of them).

    Of course, if you are a complete moron, you will botch your server configuration and leave yourself wide open, or choose the wrong server, or forget to upgrade, and get security holes all over the place... doesn't matter which
    protocol you use.

    In reality, depending on what you want to serve, modern answers include sup, cvsup, rsync, and all kinds of other applications which leave ftp faaar behind (not even talking about http...). But then, they are less accessible and a little more 3l33t, which is maybe what you are looking for.

  49. I'd say it depends on what you're serving... by PhaseBurn · · Score: 4, Insightful

    From my point of view (A network administrator), I provide both ftp and http servers for the same files (stick all downloads off /download or something, and set the ftp root to that). This has several benefets...

    1) I've found HTTP transfers are a little faster than FTP transfers (just personally, and I can in no way prove it - it may be user error, or just the programs I'm using)

    2) I've found that FTP clients are everwhere - Windows, Linux, BSD, everything I've ever installed has included a command line FTP client, but not a web browser unless I specifically remember to install one. Further more, most of the "live CDs/boot disks" that I use don't have a web browser, but do have FTP... Thus, if you're serving files that a person with out a web browser/server might need, I'd set up both...

    3) FTP security is what you/your daemon makes of it. wu-ftpd has a long history of being rooted... ProFTPd dosn't. VSFtp doesn't. HTTP security is the same way... IIS has a long history of being rooted... Apache doesn't... *(Not to say that there haven't been occasional exploits for these platforms)

    There is no clear "Use this" or "Use that" procedure here, it depends entirely on your situation, what you're serving, what your network setup is, etc...

    --
    -PhaseBurn Welcome to Linux country. On quiet nights, you can hear windows reboot.
    1. Re:I'd say it depends on what you're serving... by JimDabell · · Score: 1

      I've found HTTP transfers are a little faster than FTP transfers (just personally, and I can in no way prove it - it may be user error, or just the programs I'm using)

      Most probably because of caching, which FTP doesn't support. Even if you use a direct connection to the server, there are transparent proxies, and of course, they can implement caching their end as well, for the case of dynamic content, etc.

      Even if the content is uncachable, there is one less DNS lookup (the caching proxy takes care of it, which will probably have a better connection than you and is more likely to have it cached).

      There is no clear "Use this" or "Use that" procedure here, it depends entirely on your situation, what you're serving, what your network setup is, etc...

      Agreed 100%. The best tip for getting good answers to technical questions is to include as much detail as possible.

  50. hmm by Xtifr · · Score: 1

    Arguments 2 and b aren't arguments, they're polemicizing. Arguments 1 and a are both true (AFAIK). So, basically it comes down to a matter of taste. However, I'll point out that the speed of the protocol is unlikely to matter anywhere near as much as the speed of your server & pipe.

  51. Re:Any Delphi programmers? by Anonymous Coward · · Score: 0

    No. Delphi is gay.

  52. FTP alternatives by Boltronics · · Score: 0

    I've set up a server where security is a main concern. As we wanted FTP, but didn't want our passwords sent in the clear, we have the following services:

    1. SSH-FTP
    2. SSL-FTP (which falls back to standard FTP if the FTP client doesn't support it).
    There is also SSH available to those who want it.

    No matter which they choose, our clients are always in their own individual chrooted environment. It is used for modifying their web sites (yes, we also have Apache 1.3x, but didn't bother with it for uploads).

    --
    It's GNU/Linux dammit!
  53. Don't be an ego by Symb · · Score: 1

    Remember this is about your customer base not your ego or /.'s peer pressure. You want as much convenience for as many people as is possible with in your time/quality/cost constraints. So, don't be guided by your ego. Offer both if you can and if you cater to 1337 trolls then offer SFTP, FTP-SSL, gopher, and other not-popular protocols. Just make sure that the majority of your users can access the content and your ok either way.

  54. ftp allows 'resume' ops by TheGratefulNet · · Score: 1

    its more common to be able to resume an aborted ftp session than http. but perhaps that depends on the fetching agent.

    with wget, you can choose which protocol you want to fetch with. and wget can resume from where it left off when using ftp. I'm not sure it can do that with http (anyone know for sure?)

    --

    --
    "It is now safe to switch off your computer."
    1. Re:ftp allows 'resume' ops by Anonymous Coward · · Score: 0

      yes it can: wget -c http://....

    2. Re:ftp allows 'resume' ops by snarlydwarf · · Score: 1

      HTTP allows resume as well. (Well, 'partial-get' is what it is really.) This is how those things like 'getright' in the Windoze world work (as well as wget in the Unix world).

      On short files, the setup cost of FTP is great enough to make a huge difference. With a huge file, you're unlikely to notice a second or so of setup time (for the username, password, cd, binary mode, etc of ftp), but it's still there.

    3. Re:ftp allows 'resume' ops by orangesquid · · Score: 1

      You can with HTTP---*if* your server supports it.
      Apache is good at support Content-Length correctly, resuming transfers, etc.
      Some other webservers have a history of doing this poorly (and I don't mean just IIS, which AFAIK has been able to do this fairly well for a while)

      Of course, I'm probably completely wrong, but I wouldn't be surprised.

      --
      --TheOrangeSquid Is it any wonder things seem so awry? We swim in a sea of confusion and don't have to think to survive
  55. ftp has more features by AnEmbodiedMind · · Score: 2, Informative

    FTP provides you with user authentication, and binary transfers (which should be faster as there is no encoding??) It can also be linked to via the web, so there's not too much hassle for the user...

    On the other hand, if you don't need user authentication - and don't want to off load big file transfers from your web-server, you may as well just leave it as http.

    1. Re:ftp has more features by cant_get_a_good_nick · · Score: 1

      HTTP has authentication as well, in fact it can be more secure - with Digest authentication (which few clients support) there's no password exchange. The one advantage for FTP in authentication here is it's probably easier to set up authentication on an ftp server than an HTTP server - you can authenticate against /etc/passwd easier than most HTTP servers (though this is decidedly a BAD idea).

      HTTP also has a well defined SSL implementation (I don't know about FTP over SSL). You can also authenticate with certificates.

      HTTP does not encode/decode binary objects. It sends them binary. If anything it should be lower weight than FTP - only one connection, as opposed to FTP's 2, control and data.

      The other thing to remember about FTP, the server tries to make a connection to you. This obviously has problems with firewalls, so there's a variation (now pretty much the standard) called Passive FTP where the client makes all connections. Some FTP clients do this automatically, some you have to configure. Every new system I get I need to add the line into ~/.wgetrc to get FTP to work.

      UNIX web servers generally have had a much better security record than ftp servers. wu-ftpd has been rooted many times, it's extremely rare for any shell access to be allowed by Apache and if so you run as the user Apache is run under, not as root. Also remember that a lot of the optimization for net services has been centered on the web space, not ftp. For example, has wu-ftpd been rewritten to use sendfile()?

      If I had to choose one or the other, I'd choose HTTP. There are command line tools available like cURL and wget if you need to use them, but non-technical folks can always use the web-browser. Why not both? Why can't the ftp server serve the same area as the web-server? I know I've seen this at a lot of big FTP sites.

    2. Re:ftp has more features by alannon · · Score: 1

      HTTP transfers are just as binary as 'binary' FTP transfers. In fact, HTTP doesn't even offer a 'text' mode, where line feeds get converted, like FTP. HTTP offers user authentication built into the protocol if you wish to use it.
      The only real practical differences between FTP and HTTP is that FTP servers generally support uploading better than HTTP servers and FTP has a concept of 'sessions', while HTTP is stateless.

  56. FTP vs HTTP by The_Rippa · · Score: 2, Insightful

    I run into this dilemna constantly. I've found that HTTP is more reliable for downloads for intranet applications. When I build something in VB I try to use FTP, because I have better control of what's going on. For file uploads, of course, FTP is definitely the way to go. As for speed, I think FTP is technically faster, but HTTP throught the browser has the added bonus of showing you how much time is left on the download, making it SEEM to go faster. Basically, if the file is something that doesn't need to be secure, I'd use HTTP if speed isn't an issue (ie: intranet only or broadband connections mostly), otherwise, I'd go with FTP.

  57. Re:Any Delphi programmers? by Anonymous Coward · · Score: 0

    do your own homework, curry boy

  58. Security by Devil's+BSD · · Score: 2, Insightful

    If you're looking for security, look into sftp, part of the openssh package. It uses the same encryption as SSH, is secure, yadayada. The only drawback is that windoze users have to get the sftp client to connect to an sftp server. Our school is considering adding sftp to the student fileserver so that we can access files from home without risk of attack.

    --
    I'm the Devil the Windows users warned you about.
    1. Re:Security by TKinias · · Score: 1

      scripsit Devil's BSD:

      Our school is considering adding sftp to the student fileserver so that we can access files from home without risk of attack.

      Considering adding SSH/SFTP? Oy. I thought it was bad that my university was still discussing the removal of FTP, rather than having done it already. I don't get it: Everyone knows telnet is bad and uses SSH instead, but for some reason insecure FTP lingers on.

      Most of the answers here are missing the point. If all they're doing is downloading, then go with HTTP (KISS rule) if it's public or HTTPS if you need authentication. If you need to let people upload it's a different game -- then SSH/SFTP is the only way to go. It has the added advantage of not needing another server, just the standard sshd that the box will probably be running anyway. (I guess one might want anonymous FTP upload, but that's an incredibly uncommon need; you could probably do it with some PAM tricks and SSH though, too.)

      --
      In principio creauit Linus Linucem.
    2. Re:Security by Anonymous Coward · · Score: 0

      sftp only protects your transfer from middle man attack. if the file is that secret just file encrypt it before transferring with standard ftp. that way the transfer is secure from eavesdropping and the recipient's copy is secure from unauthorized access. encrypting all ftp traffic is wasteful and requires additional investment in upgraded hardware to handle full-time encryption.

  59. Says who? by jafo · · Score: 2, Informative

    Anyone who says that HTTP is slower and less reliable than FTP probably hasn't done any benchmarking. Based on my experience, HTTP is definitely more reliable if only because it tends to go through firewalls easier then the two-connection FTP protocol.

    Both FTP and HTTP stream data across a TCP socket -- I can't see that streaming it over port 20 versus 80 is going to make any difference.

    FTP was designed to be able to do all these neat things back when the internet didn't have so many security issues. Most of these features are either not used or explicitly disabled these days... The fact that the FTP server uses a different port means that firewall have to understand and properly be configured for this. HTTP sends the data back in response to the initial connection, so it tends to be easier to get through firewalls.

    If you're concerned about looking like a "wimp", then you should offer both and let people pick what they prefer. Or... Stop worrying about what people these people think and figure out what YOU think is best.

    The people who would call you a "wimp" probably aren't worth worrying about.

    Sean

  60. Use Both by Anonymous Coward · · Score: 1

    My business is serving files to customers. I use FTP but have a few comments:

    - Security is not an issue if you use the right ftp server. Check freshmeat to find the right one. Don't use WUFTPD or similar unless you have some reason to do so.

    - I believe FTP is still the protocol of choice for reliably serving files.

    - It's easy to implement authentication with ftp.

    That said, I'm adding http support because a lot of customers can't access ftp from work because of firewalls and a lot of home users have firewalls installed (some don't even know it) and ftp causes support problems.

    My recommendation is to support both protocols. I'm inclined to make ftp the default and use http as a user option because I "like to do things right" despite resulting customer problems. You might want to opt for http default.

  61. HTTP vs FTP opinion by dsb3 · · Score: 1

    Anoymous, download-only FTP is not too high of a risk. You do run into firewall problems - depending on your server firewall and your clients' firewall you may block both passive and active ftp connections. For download-only you can minimize exploits by keeping up to date on a reputable server (kernel.org uses proftpd which, although it's had some oopsies, is otherwise highly regarded).

    Certainly HTTP is a lot easier for the majority of people to handle.

    You might look at something like djb's publicfile which makes a given directory available over both http and ftp in a secure fashion.

    FTP uploads? Avoid if at all possible. ANONYMOUS FTP downloads .... if you want to you can offer it in addition.

    $0.02.

    --

    Slashdot? Oh, I just read it for the articles.
  62. WebDAV? by Kevinv · · Score: 2, Insightful

    How about implementing a webdav solution? You can get away from clear-text passwords, users can mount them like a drive on Mac, Windows and Linux (via DAVfs, http://freshmeat.net/projects/davfs/?topic_id=143% 2C90 )

    Still have some of the unreliablity of HTTP transfers and slowness. But works a lot better through firewalls (and more securely since connection tracking works better with WebDAV).

    I've found Passive Mode FTP to also be more unstable than standard ftp transfers.

    1. Re:WebDAV? by Anonymous Coward · · Score: 0
      Agreed.

      Though generic HTTP will be good enough if you've only got 1-100 files.

      WebDAV is part of Windows 98+ and Mozilla, Gnome 2, KDE 3.

  63. My vote: HTTP by YllabianBitPipe · · Score: 1

    Reasons: You are serving files, not receiving them, and, said files are only 1 - 6 megs. That's my vote.

  64. screw ftp by tongue · · Score: 1

    ftp might be somewhat faster, but in an era of broadband, I dont' see this as a real problem. The biggest problem is that for active FTP there's a whole range of ports you have to leave open, posing a security risk. if you're behind a firewall it might be downright impossible to open that up.

    with http you can get security if you need it (https/authentication) and deal with only a single port which is almost guaranteed to be open not only on your end but at the client's end as well.

  65. Finally a legitimate use for Kazaa! by privacyt · · Score: 1

    Go to http://www.kazaalite.com if you haven't already. Download & install it. Then offer the files on Kazaa.

    1. Re:Finally a legitimate use for Kazaa! by Anonymous Coward · · Score: 0

      I know you're probably just going for the "Funny" rating, but in case anyone takes this seriously: Kazaa, like most other decentralized p2p networks, suffers from (sometimes VERY) limited search horizons. So I guess you should use Kazaa, but only if you don't care if most people won't be able to find your files (unless many other users happen to download and share them too, which ain't gonna happen if it's not copyrighted music, software, or porn).

    2. Re: Re:Finally a legitimate use for Kazaa! by privacyt · · Score: 1
      Actually, my anonymous friend, I was being serious. I was going for an Informative rating, not Funny.

      But I didn't know that about Kazaa's search engine being very limited, so I stand corrected.

  66. TFTP, definitely TFTP by mekkab · · Score: 2, Funny

    Which one to choose? Why, its trivial!

    --
    In the future, I would want to not be isolated from my friends in the Space Station.
  67. FTP Security by ccarr.com · · Score: 1

    It seems to me that the biggest security problem with FTP is that it transmits passwords in the clear. Anonymous FTP in a chroot jail should be reasonably secure. I'd be interested to hear contrary opinions.

    --
    I don't know half of you half as well as I should like, and I like less than half of you half as well as you deserve. BB
    1. Re:FTP Security by cant_get_a_good_nick · · Score: 1

      "FTP Holes" refer to security problems in the ftp daemon. wu-ftpd (from Washungton University - anyone else remember ftp'ing to wuarchive.wustl.edu?) has a particularly bad security history. Some of these holes have allowed shell access, which run as the same user the daemon runs as. Since this is running on UNIX, it's required to run as root (you need to be root to bind() to ports under 1023, which ftp does) you end up giving someone root access on your machine. root has access to the whole machine, not just thenon-sensitive data.

      There are some ways of mitigating this. Pretty much everybody chroot's their ftp server, which limits but doesn't eliminate the damage. The problem is root can break out of a chrooted process if they really wanted to.

    2. Re:FTP Security by josh+crawley · · Score: 1

      And if it was FreeBSD you could chroot jail the process. Then the kernel kills any request that might lead to a 'r00t'

    3. Re:FTP Security by tadas · · Score: 1
      "FTP Holes" refer to security problems in the ftp daemon. wu-ftpd (from Washungton University - anyone else remember ftp'ing to wuarchive.wustl.edu?) has a particularly bad security history.

      Someone on Slashdot (sorry, I forget who) has/used to have this .sig:

      wu-ftpd - providing remote root access since 1992

      --
      This page accidentally left blank
  68. I'd go HTTP. by Sheetrock · · Score: 1
    There probably isn't much practical difference, but:

    • FTP takes longer to start and imposes slightly more overhead
    • FTP offers upload capability, which you don't need and may not want (thinking back to the packed FTP warez servers of yore where people would hijack the anonymous upload capability of edu servers to share hundreds of programs.) You may need to invest additional effort into disabling this.
    • HTTP makes it easier to add descriptions of the files.
    • HTTP is more likely to work properly across firewalls.
    --

    Try not. Do or do not, there is no try.
    -- Dr. Spock, stardate 2822-3.




    1. Re:I'd go HTTP. by Anonymous Coward · · Score: 0

      HTTP offers upload too... remember attaching files from webmail?

  69. HTTP by Karamchand · · Score: 1

    Because of the lower latency. All the logging in/handshaking stuff is not needed. You just tell the server "gimme file" and you get it. No "hello, I am like anonymous and my pwd is foo@foo.foo".. ;-)

  70. security issues? by Anonymous Coward · · Score: 1, Informative

    You mention FTP is full of security holes. This is wrong, just use a recent ftp server and you won't have any security issues. The same applies with HTTP, lots of bugs were discovered in HTTP servers as well, worms even made good use of them ;-) So ftp is not "less secure" than HTTP!

  71. One way transfer by satterth · · Score: 1
    If you really are going to stick with a one way transfer, then flip a coin and go with it. And if you don't like the answer, then go with the other one. Or just do like a bunch of other people, and use both. Sometimes it nice to have a choice in this world.

    HTTP is nice and simple for the novice users to get stuff. And FTP is nice for other things.

    Really, this question should be answered by you. You don't need our help, your the one who has to support it.

    --
    Being called a dork on Slashdot must be like being called the retard in special ed.
  72. Do both and move on by kmankmankman2001 · · Score: 1

    It's not really important enough to stress yourself over - do both and move on. You don't tell us much about the _type_ of files you will be serving up, though, which is about the only thing I think that might make much of a difference. If, for example, it's a bunch of Windows files that the majority of your user base will probably be accessing via a browser then the ftp access might never/rarely be used. If the files are more likely to be accessed via *nix users it's more likely that the ftp access would get a bigger workout (I have lots of systems where I've never left the cmd line and appreciate a simple ftp to dl some needed files). These are broad generalizations, of course, but points to what I think the more compelling reason for one vs. the other (if there can be only one! (TM)) - what would your users prefer?

    --
    "The bigger the lie, the more they believe." - Det. Bunk
  73. I know this is redundant, but ... by GreatOgre · · Score: 1

    If I were ...

    1.) concerned with security and everyone getting files has an account with me, sftp only.
    2.) had a bunch of computer illiterates who only know how to surf the web, http only.
    3.) allowing a bunch of people who don't necessarily have an account with me, ftp and http.

    That said, a combination of all three should be sufficient for just about anybody who wants/needs the files. I use ftp (sftp when it's available) to transfer information between my office and home computers. Of course, if it's a big project with several people working on it, why not use a CVS repository?

  74. HTTP vs. FTP by Anonymous Coward · · Score: 0

    As protocols goes, FTP is the king for "worst protocol of ... mankind". Really. Anyone who has ever had to (even tried to) implement an FTP client or, even worse, an FTP server knows what I'm talking about. The protocol is "specified" as if to help create security and connection problems.

    HTTP might not be the best of protocols either, but at least it's an easy, well understood, and (to me most importantly) single-connection protocol. If you got a connection to a server, you do have a connection to a server. Not so with FTP where there are more than one channel of connection to attend to (and that's not counting the differences between e.g. PASV and PORT mode!).

    As for efficiency, HTTP beats FTP any time. Hands down.

    If I were you, I'd probably set it up using HTTP.

    1. Re:HTTP vs. FTP by khuber · · Score: 1
      As protocols goes, FTP is the king for "worst protocol of ... mankind"

      I'd give my vote to telnet for worst protocol. There are about 40 RFCs specifying the core protocol and options. FTP wins for worst connection model, however.

      -Kevin

  75. transfer queue by jeffstar · · Score: 1

    One nice feature in many ftp clients that doesn't exist for your web browser is to download all files which match a certain mask, or all files in a directory.

    prompt
    mget *.tgz

    or users might have nice ftp clients that have transfer queues so they can Q up several directories, hit go and come back later.

    If you expect people to transfer more than about 7 files at once I would definitely setup that FTP, which can be run securely enough with chroot.

    1. Re:transfer queue by rcw-home · · Score: 1
      Ever tried lftp on a web server? It does exactly that.

      Queueing up files is up to the client and has nothing to do with the protocol or server.

  76. Re:My opinion by Anonymous Coward · · Score: 1, Informative

    Note that HTTP 1.1 can resume. As long as the user is downloading w/ a download manager that has a clue, that's not a problem.

  77. HTTP Vs FTP by neurojab · · Score: 4, Insightful

    The efficiency differences will be debated forever... the common wisdom is that FTP is more efficient, but there is also evidence to the contrary. That isn't the point.

    To me, this is a problem of authentication. If you want EVERYONE to have these files, why not just use the HTTP server? If you're targeting a select few people, then why not use the built-in authentication mechanisms of FTP?

    Yes I know there are authentication mechanisms for HTTP, but they're arguably harder to implement than setting up an FTP server.

    Are your clients only using web browsers to retrieve these files? I'll get flamed for this, but web browsers were not designed for FTP, and thus are klunky at it. HTTP wins there again.

    Don't worry about it. Just use HTTP and let the FTP bigots flame away.

  78. My experience.... by ruckc · · Score: 2, Informative

    My experience with FTP/HTTP is due to FTP's authentication it responds slower and is harder to configure, whereas HTTP has near instant authentication & is more easily multithreaded on downloads.

  79. SOAP anyone? by SpanishInquisition · · Score: 0

    Of course FTP is the better protocole, but now people use HTTP for everything so you might as well go with the trend.

    --
    Je t'aime Stéphanie
  80. Does it really matter? by jyg1234 · · Score: 1

    Isn't the whole point of your server to share files? So what's wrong with looking like a wimp or a dinosaur? Just use the protocol that works!

  81. My opinion by Anonymous Coward · · Score: 0

    Use HTTP. No, use FTP. Well, wait a minute, HTTP is better. On second thought, though, FTP is cooler. No, I like HTTP. Nah, just use FTP.......

  82. Obligatory non-committal response by slagish666 · · Score: 0, Offtopic
    Looking to serve files for downloading (typically 1MB-6MB)

    Lemme guess... MP3s?

    --
    "Consider the lillies of the goddamn field."
  83. Personal Preference by Anonymous Coward · · Score: 0

    I've found some firewalls/gateways (esp. doing NAT) still have issues doing outbound FTP via NAT properly, even with the client in passive mode.

    However, FTP can be (fairly) easily resumed if the connection is lost, which can be important if a larger file is being downloaded.

    In general, I've found HTTP file transfer to be both reliable and problem-free firewall-wise, but YMMV.

  84. FTP does text better by Fastolfe · · Score: 2, Insightful

    FTP has generally better support for transferring plain-text. By downloading a document using the ASCII protocol, FTP automatically fixes up newline conventions to match your native OS. HTTP doesn't do that and requires user agents to respect most every ASCII-based newline convention. Unless your user agent is really intelligent in that regard and fixes up newlines automagically, you'll probably end up with text using newlines incompatible with your environment.

    This is one area that I feel HTTP was deliberately weak on. I can't see any reason why HTTP couldn't require any text/* media type to be sent in a canonical format, with "network" newlines. If every Internet transport protocol did this properly, there would never be a situation where you have a file on your computer using the wrong type of newline.

    1. Re:FTP does text better by SN74S181 · · Score: 3, Insightful

      I like file transfer protocols to not mess with the contents of the files. I think your suggestion of servers automagically modifying textfiles to some 'canonical format' would be a nightmare.

    2. Re:FTP does text better by Anonymous Coward · · Score: 0

      "Really intelligent"? Every conforming HTTP user agent MUST do that conversion! And how much "magic" does it really take to convert CR, LF, or CRLF to your local convention?

    3. Re:FTP does text better by Fastolfe · · Score: 1

      The very reason we have more than one newline format is because plain-text is more of a logical concept than a "hard" binary concept. A logical plain-text character can be represented a number of different ways in the actual binary stream, depending upon the character set used and the newline encoding convention.

      What you're basically advocating is to have people sending text files in their own local native OS format, which means that these files will be unreadable on incompatible operating systems. Have you ever tried to read a Unix text file on Windows, or a Windows text file on MacOS? You have to figure out what newline convention is in use and convert it before it's usable in your native OS.

      Remember that "text" is a logical concept here. You cannot tie plain text to an octet stream without knowing the character set and newline convention. To suggest that all text be treated as an octet stream isn't very realistic.

      HTTP basically works around the problem by saying every major newline convention is acceptable, and leaves it up to the browser to figure out what it's doing and how it should save stuff, while FTP does explicit conversions in-transit. The FTP option is far cleaner.

    4. Re:FTP does text better by Fastolfe · · Score: 1

      Not a lot, provided the newlines are sane and consistent. In my opinion, though, user agents shouldn't have to do that work in the first place. The only piece of software that can know for sure what the newline convention is of that document is the web server itself. It knows this because it's running on the system that this text sits on. Only this software is in a position to know how to turn this logical, native text into a network-friendly octet-stream. What the HTTP spec has basically done is to say, "Everyone that uses Unix/Win32/MacOS newlines can use whatever of the three they want, but everyone else must convert to Unix/Win32/MacOS newlines." This isn't very fair.

      There *is* a canonical text representation in most every Internet protocol (including HTTP headers themselves). But since the HTTP authors figured that there were going to be lots of web server operators that were going to be serving up text/* content without proper native newlines, and/or web server authors were going to write web servers and that didn't know how to convert text to a canonical form, they said "Yah, we know MIME and HTML specs say that text should have newlines represented with CRLF, but we're not going to make you do that." So now they've taken something that could have been handled with authority on the web server side and turned it into something that has to be handled with guesswork on the user agent side.

      I'm not saying that web servers and user agents *can't* work around this short-sightedness 99% of the time with this guesswork, but I do think that all of this could have been done cleaner in the first place. After all, FTP knows nothing about media types. If it did, there wouldn't need to be separate user-selectable modes for 'ASCII' and 'Binary', it would just automatically know that text/* is text, and should have newlines translated in transit. HTTP has that advantage over FTP, yet they chose not to take advantage of it, prefering instead to try and make things easier on web server and user agent authors, at the expense of text usability.

    5. Re:FTP does text better by boneshintai · · Score: 1

      That's what bin mode is for. ASCII mode auto-converts newlines, BINARY mode leaves the data absolutely alone.

    6. Re:FTP does text better by Fastolfe · · Score: 1

      In my experience, saving text files (e.g. html, css, text) from within your browser yields unpredictible results. Sometimes I get Unix newlines in the file, sometimes I get DOS newlines. So user agents today do not appear to universally translate this for us.

      I believe the HTTP spec just says user agents should *treat* all newlines equally, in that it's all whitespace, though it doesn't explicitly say how the browser should save that text should the user ask it to be saved.

      Plain-text should be saved using the OS-native text conventions, not as a binary stream that's "close enough" to plain-text.

      But, again, conversions are a transport-layer issue (HTTP), not a user-agent issue. Browsers shouldn't have to know how every other OS handles its text. It should just have to know about the network/canonical form and the native form (assuming it allows saving).

      Or, even better, the OS should have a library designed to go from network/canonical form to/from native.

      Remember also that not all OS's use ASCII-based character sets...

    7. Re:FTP does text better by SN74S181 · · Score: 1

      I don't want 'file copy' utilities mucking around changing the content of the files I copy with them. It's really that plain and simple.

      I use TextPad for my text editing purposes on Windows and it cleanly interprets UNIX or DOS newlines. There are small but powerful utilities I use in UNIX to do the newline conversion when it's necessary. "Invisible to the User" conversion might be fine for file viewing, but it's bad for file copying. The system should leave the files the way they were.

      And, ummm, I can't think of a time when I have ever chosen to switch a command-line FTP client to 'text' mode because I happened to be transferring a file with 7 bit chars. Binary mode by default just makes more sense.

    8. Re:FTP does text better by Fastolfe · · Score: 1

      What if one of the two operating systems doesn't even use an ASCII-based character set? Transferring text from such an OS to a Windows PC would cause the text to be unreadable, to say nothing about something minor like newline conventions.

      What you don't seem to be accepting here is that text is a logical data format, not a binary one. Text is a sequence of characters. A character set and newline convention "render" that sequence into an octet stream. That octet stream is specific to that character set and newline convention.

      How is an automatic newline conversion bad?

      Are you honestly suggesting that every text manipulation software in the world stop using native OS calls to manipulate text and start working at the binary level, "detecting" things like character sets and newlines? Why even have a native text format at all then if you're going to avoid it?

      I don't think you're looking at the bigger picture here.

  85. Maybe the biggest difference by pete-classic · · Score: 1

    FTP supports file listing. Many HTTP servers support auto-indexing, but it really isn't the same.

    It's quite a bit easier to get a bunch of files from an FTP server in many cases. "wget ftp://some.server.tld/some/directory/*.ext" can't be replicated over HTTP without some scripting against the index.

    Now, YOU have to decide if this is a good thing or a bad thing for your application.

    -Peter

    1. Re:Maybe the biggest difference by Anonymous Coward · · Score: 0

      WebDAV lists collections' resources and properties, and it actually works because it doesn't rely on clients being able to screen-scrape a directory listing in some unspecified format.

  86. Use ZMODEM !! by boy_afraid · · Score: 4, Funny

    Come on people, use the Z-Modem protocol. It can resume transmission on a file transfer where HTTP or FTP can not. The only way a FTP or HTTP can resume transmission is with the GetRight tool.

    I remember in my days of BBSes with X and Y Modem, and then when Z-Modem showed up we all couldn't be happier. When some idiot in the house picked up the phone and disconnected you from hours and hours of downloading the latest Liesure Suite Larry, I just reconnected and started to resume my downloads (but only if I had enough credit, then I might have to upload some crap). :) HA HA!

    1. Re:Use ZMODEM !! by Jugalator · · Score: 1

      the only way a FTP or HTTP can resume transmission is with the GetRight tool.

      No, the only way FTP can resume transmission is if the FTP server support resuming. GetRight doesn't magically make resuming work since the server still need to support a method to set the "file pointer" to a certain amount into the file.

      But I agree that Z-Modem rocked! Wasn't there even variants of Z-Modem that was supposed to be even better?

      --
      Beware: In C++, your friends can see your privates!
    2. Re:Use ZMODEM !! by marko123 · · Score: 1

      Hehe! I wrote Jackhammer, one of the first commercial programs (before GetRight, etc.) to use REST instead of RETR to get FTP resuming files. Ah, the mammaries.

      --
      http://pcblues.com - Digits and Wood
    3. Re:Use ZMODEM !! by Reziac · · Score: 1

      There was another protocol, whose name escapes me now (tho I suppose I could dial our BBS and look at the list :) that was basically ZModem but allowed simultaneous uploading and downloading. I've been told it was VERY efficient.

      BTW Getright can sometimes finagle a resume from a server that claims not to support it. Used to see this regularly with GeoCities.

      --
      ~REZ~ #43301. Who'd fake being me anyway?
  87. Better Protocol by Anonymous Coward · · Score: 0

    I'd suggest UUCP.

    -Kris

  88. Let FTP serve it's purpose. by insane8 · · Score: 1

    If you plan on only sharing files that are listed on your website you may as well go with HTTP. The Reason Being that you have less to take care of, managing and FTP Server Alongside of a HTTP Server is a Pain in the Ass:

    *Two separate sets of permissions that need to be in sync
    *Two Protocols that could possibly be blocked by your ISP (They don't like FTP much)
    *Browser Integrated FTP clients suck and it's a pain in the ass to have to copy and paste addresses into another client for the user
    *Usually Extra Licensing Costs if your using a M$ Platform
    *Most net users have download managers that are based on HTTP and that can resume (less bandwidth for you).
    *FTP clients are mysterious "hacker" type software to average Joe.


    Go with HTTP, it makes life easier and shows that your and your clients/users time is worth more to you than a little extra overhead.

  89. ftp is a turd - real men use dns by Anonymous Coward · · Score: 1, Informative
    http is a lot more reasonable protocol. Use it. It can be made to work blazingly fast and it's much more reliable than ftp. Apache is a fine http server but there are others which are faster. But none of that matters; apache on a reasonably modern machine can saturate an ethernet. So who cares about efficiency.

    However, real men write a protocol that works over DNS TXT records using the CHAOS protocol. I'm actually working on this!!!

  90. Try TADS by Shawn+Baumgartner · · Score: 1

    As in Take A Damn Shower. And go check out some night life. Jesus, you're using perceived social status as a criteria for choosing a fucking protocol. Who gives a rollicking rat's ass what people are going to think about your choice in protocols? Go worry about whether you should tell her before or let her find out the hard way that you're almost done. I suddenly feel vastly less nerdy for not ever having worried about looking like a dinosaur or a wimp because of my friggin file server's protocol.

    Oh, and real men use FTP.

  91. Re:My opinion by caino59 · · Score: 2, Informative

    IE will resume a d/l too, providing the temp file is still in cache

  92. HTTP is the obvious choice by sublimespot · · Score: 1

    Id love to see who these "experts" are. FTP FASTER than HTTP? Um .. Ok

    The answer is quite obviously that HTTP is the better choice for you.

    FTP is known for security holes. FTP is often misconfigured. FTP uses two ports and commonly has problems with firewalls, stateful or not.

    HTTP you wont have to deal with most of the headaches.

    1. Re:HTTP is the obvious choice by Anonymous Coward · · Score: 0

      Yeah, and a HTTP download in Internet explorer hangs at 99.9% complete and when you close the window it deletes your file and you have to start all over again. Sure sounds reliable to me.

    2. Re:HTTP is the obvious choice by sublimespot · · Score: 1

      Dude, you've got to be kidding me. You are comparing apples to oranges. If IE crashes at 99.9% then that is a bug in IE. It has absolutely NOTHING to do with the protocol.

  93. Change it to, Ask slashdot to do my job. by Neck_of_the_Woods · · Score: 4, Funny


    Why do we have all these new ask slashdot question that sounds like a tech with a years experience is asking how to do his job?

    I vote for a new section, "How do I do my job" with a dollar bill as the logo.

    --
    Neck_of_the_Woods
    #/usr/local/surf/glassy/overhead
    1. Re:Change it to, Ask slashdot to do my job. by lawpoop · · Score: 1
      Hey you know what? People aren't born knowing everything. You actually have to learn something sometimes. This involves asking other people at time.

      He's already done his google search. There is no FM out there that can give you the information like a human's response to a question .

      --
      Computers are useless. They can only give you answers.
      -- Pablo Picasso
    2. Re:Change it to, Ask slashdot to do my job. by Obiwan+Kenobi · · Score: 1
      Why do we have all these new ask slashdot question that sounds like a tech with a years experience is asking how to do his job?


      You sir have certainly never held a sys admin job.

      Considering I do, here's what I think: I'd like to think of myself as constantly learning, reading something today that makes me change my mind about something I was advicating yesterday, improving on something never before thought possible. Reading all of this gives me insight on how I would use FTP/HTTP for file download servers, yet now we're helping him do his job?

      Have you never Googled for a quick error message, or some oddity you'd never heard of?

      Have you never asked at least 3 geeks around you what's the best way to clear up some freaky [printer/file/program] problem?

      Have you never felt your blood run ice cold as you save yourself from a huge mistake at the last minute, and realize that another keystroke would've could've crippled your entire network and caused a major F*uck Up?

      If not, then I seriously doubt you have experience working in the IS sector. Great jobs are to be had, but with great power comes great responsibility (cheesy, but bear with me), and decisions like these could cost money.

      No one ever got fired from asking slashdot how best to do a job now assigned to them.

    3. Re:Change it to, Ask slashdot to do my job. by hoofie · · Score: 1

      The issue here is that one of the best ways to get an answer to your question is EXPERIMENTATION. Try some downloads from a HTTP Server, and then some from a FTP Server. Try different scenarios (different browsers, different file sizes, even yank out the network connection) and then make an EDUCATED decision on which way to go.

      There is a lot of 'Ask Slashdot' where I suspect the person asking the question doesn't have the wit to go and INVESTIGATE properly and make their own decision.

      Sure, google, ask your colleagues etc., but thats no substitute for being able to make your own decisions. That is a mark of being competent in your skills. A lot of people coming into the IT business recently don't seem to be able to do research, and are just looking for someone to provide a 'magical answer'. If you don't believe me, have a look at various discussion boards, where people ask all-encompassing questions and then get stroppy when someone doesn't provide them with 40,000 lines of code.

      p.s. When I started doing sysadmin work in 1990/1991, there was no google etc. - the only way to solve issues was by trial and error.

    4. Re:Change it to, Ask slashdot to do my job. by Neck_of_the_Woods · · Score: 1

      Interesting, I have had a job in the it sector for over 8 years and on pretty much every OS and server on the market.

      Yes to all of you questions.

      That question was right out of a A+ cert book. Google clearly states the ups and downs of ftp/http if you look.

      This was a lazy way of having a large mass of smart people do your job. Period.

      If you don't know the different between ftp/http and the pros and cons don't make a fool of yourself buy asking Slashdot. Ask your local tech, your local admin, or google as you so clearly put above.

      If I went to a Aviation website and asked how put air in the tire I would be laughed off the site. That is my point. With that in mind I see where you are coming from, it was just a little low on the scale of "Ask Slashdot" for my tastes that is all. It really seemed like a lazy admin did not want to do his homework and handed it off.

      --
      Neck_of_the_Woods
      #/usr/local/surf/glassy/overhead
  94. ftp or http? by heatsink · · Score: 1

    vi is better than both

  95. FTP is what you should get by Dark+Lord+Seth · · Score: 1

    If I remember clearly, FTP is prefered over HTTP for downloading larger files for various reasons. First of all, HTTP is stateless, meaning it will accept your connection, pump out whatever data it returns and doesn't do much more really. FTP isn't stateless, meaning you connect to it, it responds, negotiates a transfer and actively tries to keep things going, resulting in (somewhat) slower initial connection because of more protocol overhead, but far more reliable down/uploads. Also, FTP security can be as good as you want it to be. Disallow anonymous access, set proper users accesses, chroot them into their home directory and use a decent, up-to-date server such as Proftpd. Also, you can't (easily) upload files with HTTP, though it is possible. However, FTP uploading is far more elegant and again, more reliable.

    1. Re:FTP is what you should get by Meowing · · Score: 1

      HTTP/1.0 was stateless, but 1.1 changed things substantially, oh, 5 or 6 years back. Chunked transfers added the ability to resume transfers, and of course persistent connections came in at the same time, along with with a range negitiation possibilties nearly as flexible and confusing as what FTP impos^H^H^H^H^Hoffers.

      Uploading: HTTP/1.1 supports this just as well as FTP. Client software that supports this can be pretty lame, but this isn't a protocol issue, just a reflection of the idea that more people seem to be interested in writing presentation-oriented browser thingies than no-nonsense command line tools. wget is a nice attempt, but this area is still wide open territory for all those people who want to think up a decent utility to write that no one else has already done a thousand times over.

      The only feature that FTP supports at the protocol level that nothing else really offers to the same degree is the explicit separation of the command and transfer streams. With more and more firewalling and NATing forcing FTP users to negotiate PASV mode, this amounts to an anachronism. HTTP's rich support for proxying offers a much more flexible way to provide the same feature, of course, namely the ability to send files from a host or interface other than the one that received the client request.

      So: protocol-wise, FTP and HTTP/1.1 are about equal. In terms of client software, FTP still has an edge.

    2. Re:FTP is what you should get by J.+Random+Software · · Score: 1

      Chunked supports keepalive for dynamic-length resources (which otherwise require TCP FIN to signal EOF). Resume is supported by Range headers (and ETag--unlike FTP, HTTP does the Right Thing if you try to resume a GET after the resource has been modified).

  96. Question... by mrozkan · · Score: 1

    How does the connectionless nature of HTTP contribute to the performance of file transmission?

    1. Re:Question... by mrozkan · · Score: 1

      Oops, nevermind its not connectionless. doh!

  97. sharing your diary online? by automag_6 · · Score: 1

    >>typically 1MB-6MB

    since you are obviously running a MP3 server, I think you should set up a FTP server. The users who actually use and understand a FTP client will be the only ones who will upload to your FTP/MP3 server, which is why you are really doing this anyways. Sure, you want to be cool and share, but getting new MP3s without the work of searching is where it's at, from my experience.

    I ran both from my computer, and setting up a FTP server like Serv-U is easy as can be, not that the HTTP version is putting a man on the moon either.

  98. Hint: If they talk like that, they're not experts. by Kitanin · · Score: 2, Informative

    (Cleaning up the text a bit)

    According to a rapid Google search, the experts say:
    1. HTTP is slower and less reliable than FTP; and
    2. HTTP is amateur and will make you look a wimp; but
    3. FTP is full of security holes; and
    4. FTP is a crumbling legacy protocol and will make you look a dinosaur.

    Well, 2 and 4 are nothing more than acephalic punditry, unworthy of our attention, which leaves 1 and 3.

    The fact that HTTP doesn't use a binary connection to transfer binary files means that, yes, it is frequently slower than FTP. Especially since your listed file sizes imply that you're not offering text files for download.

    While FTP doesn't have any security holes (Yay for false generalisations!), many of the readily available ftp daemons have had shaky track records in the security area.

    I don't really have an answer for you, I just wanted to say acephalic. :-) Acephalic acephalic acephalic...

    --


    Teach your kids: "C++ made baby Jesus cry."
  99. The need defines the solution. by PrimeNumber · · Score: 1

    HTTP is amateur and will make you look a wimp.

    FTP is a crumbling legacy protocol and will make you look a dinosaur.


    These two factors should not even enter the equation. Whatever you decide to use, you should decide based on which one accomplish your goals for a given situation.

    Or you can look at it this way: You will look dumb, if you decide on an inferior technical solution only to appease peoples opinions on what they might think of you, or how 'in' you are. Those people really dont matter anyway, they read Business 2.0 and Information Week and believe it is gospel. These same people believed in the 'new economy', and XML this and that, blah blah.

    Do the right thing.

  100. FTP, eugh! by lpontiac · · Score: 1

    Please, FTP, just die.

    It's two-TCP-connections approach is incredibly painful, and raises all sorts of ugly issues with firewalling, NAT etc.

    If you're offering a link from a webpage, the majority of people will probably download from within a browser. Even if they don't, pretty much every OS ships with a command line tool to grab a file over http - wget, BSD's (including MacOS) fetch, etc. Tool support isn't really an issue.

    One caveat is that typically a website runs off something fully fledged like Apache, which is a bit heavy for serving up large files. You might want to look at something like boa or thttpd. (Personally, I've seen performance problems on a webserver clear up by moving all the static images off Apache, onto images.sitename.com running thttpd).

    1. Re:FTP, eugh! by walt-sjc · · Score: 1

      Yeah, FTP is an annoying protocol, but any modern firewall handles it just fine with NAT thankyouverymuch.

      Frankly, rsync is the best protocol for large files. It's DESIGNED for it.

  101. Speed by Anonymous Coward · · Score: 0

    HTTP is waaaay faster than FTP. P2p also use it. Shareaza p2p can even be youre default download manager.

    Dump FTP. Would you consider hosting a web site over FTP? No, so why files?

  102. Both... by idontgno · · Score: 3, Insightful
    If you can support the risk. (FTP is possibly more risky, because you're allowing access to something approaching the interactivity of a shell session in the FTP command session.)

    HTTP "upload" is trickier than FTP upload, if that's a factor.

    FTP is full of security holes
    Computers are full of security holes. Both webservers and FTP daemons have the risk (and history) of 'sploitable holes. As to configuration-related risk, there's more inherent in the default configuration of an FTP server, since its original concept of ops is browsing a physical directory tree, but most current FTP servers can be locked down as tight as any webserver.
    FTP is a crumbling legacy protocol and will make you look a dinosaur. HTTP is amateur and will make you look a wimp.
    Just can't win, can you? Only posers worry that their choice of protocol might look bad. It's not fashion, folks.

    If you had to support only one, pick HTTP, since I bet you're already running a webserver. And if it's really about fashion, run an exotic protocol like CORBA or SCP or something.

    --
    Welcome to the Panopticon. Used to be a prison, now it's your home.
  103. FTP _MUCH_ faster than HTTP by trandles · · Score: 3, Informative

    It is possible to get approximately 80% of the theoretical maximum throughput of your pipe using a single FTP connection, whereas HTTP can hope for around 60% max for a single connection. The only thing faster than an FTP-based protocol (tftp, pftp) is a raw socket, and they rarely get better then 90%. Most schemes like pftp (parallel ftp, see this paper) are implemented to get as close to theoretical maximum throughput by having multiple data connections transfer the file. Of course you'll see the difference in performance more for large file transfers. The previous comment about HTTP being OK for small files is right on the mark...you will hardly notice a 20% gain when the transfers are only taking a few seconds.

    1. Re:FTP _MUCH_ faster than HTTP by rcw-home · · Score: 1
      HTTP can hope for around 60% max for a single connection.

      Utterly false. You should do one of three things:

      • Benchmark it yourself
      • Provide references
      • Accept that your anecdotal information is not credible to those who have personally gotten better speeds than your percentages would imply via both HTTP and FTP.
    2. Re:FTP _MUCH_ faster than HTTP by trandles · · Score: 1
      Mea Culpa. My impressions were based on a benchmark comparison we had done nearly 8(!) years ago. Time flies I guess...it only seems like 2 or 3! Seeing as how webservers were much newer and much less tuned than they are today it's not surprising to see that things have changed. I actually did rerun some pseudo-tests (wget against apache 1.3.26 and proftpd ) using a 17.8MB file and have found that after 10 runs of each the times differ by less than 1%. My apologies.

      It's time to revisit long-held truisms and see where things stand today. Of course, it's not difficult to come up with a benchmark that would show you it's faster to burn a CD and mail you the data than to send it over a network...(lies, damn lies, and statistics)

  104. WebDAV by Rayder · · Score: 1

    Forget ftp or http, WebDAV is the answer you need, modern, user friendly and convenient, your users will love it, not the fastest but it is right.
    WebDav gives you the advantages of http (firewall transparent) and some more (SSL, events, log processing, XML extensions). The worse thing about WebDav is that is usually harder for the admin to get it running and that it's not as universal as ftp are.

  105. Scripting SFTP? by djcatnip · · Score: 1

    Help, is there any way to script SFTP? I know with ftp you can use the .netrc file to hide the ftp login, etc.. but I haven't found any solution to automate a secure ftp process.

    --
    I make these: http://beatseqr.com
  106. Answer: Tux. by gik · · Score: 1

    Here's how i might do it.

    1. Web content on whichever web server you already use.
    2. Conent "en-masse" which you would normally want to deliver over FTP should be put on a failry secure web server, if you're worried about security. Tux would do the job as a very quick and secure webserver (an LVS cluster of like, 2-3 of these, maybe, i'm no LVS expert).

    OR

    Use a more secure ftp server (ProFTPd). :)

    --
    ZERO
  107. Ahem. by kyz · · Score: 2, Informative

    I use two programs to retrieve files, wget and Mozilla. Both show the download rate whether I'm fetching from HTTP or FTP.

    What bugs me is when servers won't tell me the final downloaded file size -- no ETA available. I've seen both FTP and HTTP servers do it. The same goes for servers that don't support resuming or last-modified dates. They suck.

    --
    Does my bum look big in this?
  108. Why not use DIP or DAP? by !Squalus · · Score: 1

    Why not use use DIP or DAP instead? They are dinosaur protocols I am well aware: Dinosaur Internet Protocol and Dinosaur Access Protocol, but they have been around for millions of years. Compression is excellent and I hear they have a very fluid viscosity to them that make them permeable, yet full of energy potential. Unfortunately DIP and/or DAP packets do tend to explode when exposed to high temperature electric wiring, and they put off a foul smelling odor, but you are sure to be the L33t3zt kiddie on your block cuz U n0 the DIP and DAP codez!

    --
    All Ad hominem replies happily ignored as the sender shall be deemed to lack the faculties to comprehend the equation.
  109. OR, How about... by Anenga · · Score: 5, Informative

    P2P?

    I've written a tutorial on how you can use P2P on your website to save bandwidth, space etc. An obvious way to do this would be to run a P2P client and share the file on a simple PC & Cable Modem. This works, but it is a bit generic and un-professional. A better way to do this may be to run a P2P client such as Shareaza on a webserver. You could then control the client using some type of remote service (Terminal Services, for example).

    P2P has it's advantages. Such as:
    - Users who download the file also share it. This is especially useful if the client/network supports Partial File Sharing.
    - When you release the file using the P2P client, you only need to upload to only a few users. Those users can then share the file using Partial File Sharing etc.
    - Unlike FTP and HTTP, they aren't connecting to your webserver. Thus, it saves bandwidth for you and allows people to browse your website for actual content, not media. (Though, media is content). In addition, there is ussually "Max # of Connections" allowed to a server or FTP. Not so on P2P.
    - P2P Clients have good queuing tools. At least, Shareaza does. It has a "Small Queue" and a "Large Queue". This basically allows you to have, say, 4 Upload slots for Large Files (Files that are above 10MB, for example) and one for Small Files (Under 10MB). Users who are waiting to download from you can wait in "Queue", instead of "Max users connected" on FTP.

    Though, at it's core, all of the P2P I know of uses HTTP to send files etc. But the network layer helps file distribution tremendously.

    1. Re:OR, How about... by saltyboy · · Score: 1

      Your tutorial only shows you how to set up a download using shareza. I was hoping for something more generic.

    2. Re:OR, How about... by fymidos · · Score: 1

      some type of remote service (Terminal Services, for example)

      hey you are trying to save bandwith.

      --
      Washington bullets will simply be known as the "Bulle
    3. Re:OR, How about... by mlinksva · · Score: 3, Interesting
      Excellent tutorial overall, save the sniping at non-Shareaza Gnutella clients. The great thing about MAGNET is that it is client/network agnostic. Shareaza was the first client to support MAGNET and it's an excellent program, but it isn't the only one (at least Xolox does right now, with several others either recently or very soon to be added). The part about disallowing uploads to non-Shareaza clients is completely bogus -- allowing others to download a) doesn't prevent other Shareaza users from downloading and b) limits the number of people you'll be able to distribute content to in a cost effective P2P manner. BTW, you can share your content with any modern Gnutella client (i.e., allows download by hash), and it will be available to people using MAGNET, even if the sharing client doesn't support MAGNET yet.

      Also, you forgot the first and biggest site with MAGNET links. Still, an excellent tutorial, thanks for writing it!

    4. Re:OR, How about... by Anenga · · Score: 1

      I agree. Using MAGNET URI's hopefully will result in less of a possibility of webmasters having to replace them with another URI method in the future (Though, they may have to replace them with an updated hash) because, hopefully, future clients will use the MAGNET URI spec too.

      I have taken your advice and have updated my tutorial.

      The problem with uploading to Gnutella1 is that the other people downloading the file have a harder time getting it (since Gnutella1 clients generally don't have Partial File Sharing, Global search etc.). Remember, this is only the "splash source" (or inital source distributing the file) who is disabling Gnutella1 support. The other Gnutella2 clients that download it can share it.

      I have also added Bitzi, can't believe I forgot them =)

    5. Re:OR, How about... by Anonymous Coward · · Score: 1, Informative

      > P2P?

      BitTorrent is perfect for this. http://bitconjurer.org/BitTorrent/

      >and if you want me to use my bandwith to upload your file to other people, sorry, forget about it.
      >I agree. My upstream is only 40KBytes, I don't want to share it.

      Because you are uploading pr0n all the time you can't share for.. well say Linux distribution distribution. If they would use BitTorrent there would be a much better possibility of getting that file than downloading it only at 1kbs.

      >also, those clients are a security hazard.
      >I definately agree. Downloading from a "trusted" website gives me at least some peace of mind that I'm not downloading a virus. Granted it's not guranteed - but it's far less likely to get infected from a website than it is form Joe Script Kidie.

      Well, the files get MD5 summed and downloaded on the fly, so there is a very little possibility of changing the files.

      Vote for BitTorrent! =)

      -V

  110. FTP does not use UDP by ragnarok · · Score: 1
    FTP does not use UDP for the data socket, it is also TCP. Why on earth would they have gone to all the trouble to implement reliable communications (kind of necessary for file transfers) over an unreliable protocol?

    For a good overview of FTP see: http://www.protocols.com/pbook/tcpip5.htm#FTP

    --
    Search first, ask questions later.
  111. IE - why is FTP so bad?? by bach37 · · Score: 1


    Why the heck is FTP so horrible in windows IE? Any clues? It takes forever.

    -Scott

    1. Re:IE - why is FTP so bad?? by 001010011010 · · Score: 1

      Look for the option "passive ftp" in your internet options and enable it.

      The bad thing about it is that passive ftp awareness has been standard for a long time now but it's still not standard on all qdos-extensions

  112. FTP with TCP wrappers by prgrmr · · Score: 1

    If security is an issue, FTP with TCP wrappers is the way to go. Make sure the server's OS is patched, set all the security configurations for the FTP and the wrappers, disallow anonymous login, and encrypt the files with PGP. You could also create logins for downloading, and different logins for uploading. Do copious syslogging so you can see which login ID is doing (or trying to do) what.

  113. What browser would that be? by rfmobile · · Score: 1

    >> "HTTP is restricted by browsers, many of which will not support files larger than a certain size."

    What browser would that be? Certainly not IE, NS/Moz or Opera.

    1. Re:What browser would that be? by GrenDel+Fuego · · Score: 1

      You'd be surprised the number of people out there on the net still using age old web browsers. For the most part an ftp client is an client, while there are large differences of downloads on netscape 1-7, the various versions of IE, and AOL web browsers from older releases.

    2. Re:What browser would that be? by terrymr · · Score: 1

      Not any more, but IE used to have a "bug" that prevented you from downloading netscape with it (due to the download being larger than IE was able to handle).

  114. Ah, FTP by Richard+W.M.+Jones · · Score: 2, Funny
    As the co-author of a moderately popular FTP server, I think it's a great shame that FTP is regarded as a second-class citizen in the world of the web.

    FTP is a quirky, extensible protocol, great for uploading, downloading and sharing files, and you can do wonderful things with FTP and databases which web servers only dream about.

    Rich.

  115. FTP Clients Allow Multiple File Downloads by Anonymous Coward · · Score: 0

    you can't shift-click files in your web browser.

    If your users are sophisticated enough to run an actual FTP client, they might enjoy that feature.

    Otherwise, HTTP gets through firewalls and proxies.

  116. No, by HughsOnFirst · · Score: 1

    You're wrong, but you brought up a good point.
    HTTP download managers can do a great job of recovering from timeouts and disconnects. One that I use on windows can even make six simultaneous connections to the same server and get six parts of the same file then reassemble it. It can even do that trick with sis separate mirrors of a file on six different servers. It's called lightning download. http://www.lightningdownload.com/ I use it mainly to get ISOs. I would always get 500 meg of a file then fail before I started using it

    1. Re:No, by sweetooth · · Score: 3, Insightful

      Connecting to multiple servers to download a file is great. Getting six connections from one client to one server is a royal pain, and is one of the reasons some admins have taken to blocking download managers. Getting multiple connections from one client can reduce the number of total users that can be served and is the biggest drawback to allowing download managers.

    2. Re:No, by Anonymous Coward · · Score: 0, Flamebait

      One that I use on windows can even make six simultaneous connections to the same server

      YOU! You're the one that keeps doing that! You absolute loser! Open one connection and wait your turn.

      People like you are the reason why people like me have to write rate-limiting software. You're not happy getting your fair share, and try stupid tricks like that to 'speed things up'. Sure, it may get faster - for you - but everyone else suffers.

    3. Re:No, by jez9999 · · Score: 3, Insightful

      And I've never understood why they think that opening up 6 connections when downloading a file would be quicker than just one. Quite apart from the fact that that insane kind of tactic can get your IP banned from some HTTP servers.

    4. Re:No, by Genyin · · Score: 1

      And I've never understood why they think that opening up 6 connections when downloading a file would be quicker than just one. Quite apart from the fact that that insane kind of tactic can get your IP banned from some HTTP servers.

      It is, at least when you are dealing with, say, a large campus internet connection. If I get one connection at 50k/s, I can get a second at 50k/s.

      (this amounts to taking bandwidth away from all those KaZaA users on campus)

    5. Re:No, by jez9999 · · Score: 1

      Right. But the vast majority of users that download this stuff, I would think, are on 56ks or something. At least, the vast majority of ads I have seen for this kind of software have been to 'turbocharge your modem'. Makes no sense.

    6. Re:No, by Guspaz · · Score: 3, Interesting

      Because you get a larger share of the bandwidth pie. This applies both on the server end, and your ISP end. If you have bandwidth to spare, you can get 6 (or 8, or 10, depends on the client) users worth of bandwidth because each connection is treated by the server as seperate. On the other hand if you have a slow ISP, you can get a larger share of your ISP's bandwidth.

      I have 3.5mbit DSL, but my ISP's performance is flaky. However, I have no problem pulling 300-350KB/s with a download accelerator.

    7. Re:No, by stickyc · · Score: 3, Insightful

      I'm not totally up on HTTP and such, but why is it a royal pain? Assuming the user is going to download all 3 ISO images one way or another, what's the issue if he grabs them using 6 streams in 1/6th (roughly) of the time, or in one stream for the full stretch? It's still bandwidth being eaten. I guess it boils down to time versus users.

    8. Re:No, by sweetooth · · Score: 2, Informative

      Most web servers allow a max number of connections. If one user is eating up six connections that is potentially five fewer people that can download the files. With the case of ISOs the distributor probably has more bandwidth than the person downloading does. Hence it is more effective to serve as many people with as much bandwidth as possible. It's really a curteousness issue to the server operator to not open six connections when one will do.

    9. Re:No, by Blkdeath · · Score: 1
      Assuming the user is going to download all 3 ISO images one way or another, what's the issue if he grabs them using 6 streams in 1/6th (roughly) of the time, or in one stream for the full stretch?

      I have a 1.5MBit ADSL line at home. I can download at approximately 192KBytes/sec at wire speed, or a more realistic 180KBytes/sec. Regardless of whether I run one wget or ten, I will still download at 180KBytes/sec, therefore taking the same amount of time.

      However, now I'm maintaining more connections, using more CPU power, and taking up more spaces on the server that could otherwise be used for othuer users to download the same file.

      That's a stupid idea, and it seems to result in little more than excessively flawed download results, like the people who tell me they've transferred 100KBytes/sec across a 28.8k modem, or who've tweaked their cable modems to give them T3 speeds at home, or ...

      But hey, since atleast 9/10 of the postings in this thread have been complete digressions from any semblence of the question asked (which, in and of itself, was a pretty silly question), I suppose mis-information is acceptable. What more should I expect from "Ask Stupid Questions Of Slashdot" anymore?

      --
      BD Phone Home!

      Shameless plug. Like you weren't expecting it.

    10. Re:No, by Anonymous Coward · · Score: 0

      multiple streams /do/ go faster, for whatever reason. probably the same reason that when a connection is slow, it never speeds up, but if you stop and restart it, it's capable of jamming again.

      look at cuteftp pro - it supports multiple ftp connections for single files (chunks them itself and reassembles them itself)

    11. Re:No, by p3d0 · · Score: 1

      Think long and hard about why 6 connections from the same client to the same server gets the file in 1/6 the time, and you should have your answer.

      --
      Patrick Doyle
      I mod down every jackass who puts his moderation policy in his sig. Oh, wait a sec....
    12. Re:No, by Chatterton · · Score: 1
      I have a 1.5MBit ADSL line at home. I can download at approximately 192KBytes/sec at wire speed, or a more realistic 180KBytes/sec. Regardless of whether I run one wget or ten, I will still download at 180KBytes/sec, therefore taking the same amount of time.
      I have a 3Mbit ADSL line at home. I can donwload realisticaly at 300KB/s. From time to time I found ftp/http servers where there is a hard hard limit at 50KB/s, but if I open multiples connections I could get my full 300KB/s. Yes I am hard on this kind of servers. But If they send me 300KB/s directly, I am very gentle and open just 1 connection at a time.
    13. Re:No, by Bert64 · · Score: 1

      But 6 connections to the same server won`t be 6 times quicker unless your line is multi homed or the server has some kind of per-user bandwidth limit. Granted, it will improve your speed slightly because you can be recieving data from one connection while your waiting for another to acknowlege your packets, but the difference is small.
      However many servers have a limit on the maximum number of users, most of the advantage gained from multiple connections is because you can exclude other users (thus increasing the available bandwidth for yourself) and this is highly rude.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    14. Re:No, by Bert64 · · Score: 1

      Well might not the admin of the server set the 50kb/sec limit for a reason? He`s offering you a free service out of the goodness of his heart, he has no obligation to serve files to you.. and you should be greatfull he allows you to consume 50kb/sec of his bandwidth.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    15. Re:No, by Nyarly · · Score: 1
      Ahem.

      I can donwload realisticaly at 300KB/s. From time to time I found ftp/http servers where there is a hard hard limit at 50KB/s, but if I open multiples connections I could get my full 300KB/s.

      Perhaps the administrators of those servers configured a per-connection bandwidth cap for a reason. I mean, just maybe they have an interest in providing their free service to as many people as possible over their limited bandwidth. As a consumer of a free service, doesn't it seem kind of shortsighted and thuggish to circumvent their attempt to make their service as widely available as possible?

      I don't mean to bug you. P'raps I'm just to civic minded.

      --
      IP is just rude.
      Is there any torture so subl
  117. HTTP and multiple files by dt23507 · · Score: 1

    One thing I like about FTP is that most clients allow you to select multiple files and grab them all in one shot. I think that you can do this with wget over HTTP, but I don't know of any web browsers that can.

  118. fsp! by veggiespam · · Score: 1

    mentions of uucp, kermit, rcp/scp, but nobody has mentioned fsp. maybe i'm just being too obscure.

  119. You're all crazy! by PolaRis75 · · Score: 1

    On-demand UUEncoded email transfers! Yeah baby!

  120. FTP's statefulness by sethadam1 · · Score: 2, Insightful

    HTTP is stateless and FTP is stateful, yes. However, the "overhead" required for a stateful connection is not going to cause a slowdown in transfer except possibly an the onset for the authentication. Stateles IP protocols don't have persistent connections, they shoot packets out and don't care about the receiving end because they assume that IP devices in the middle or the end will ensure delivery and proper resequencing. Stateful protocols keep an active connection and this is supposed to be faster. After all, ATM's big hold over, say DS3 and T1 lines, is that they open a pipeline and shoot data downstream. It is "connection oriented," like a phone call.

    My suggestion would be to go with FTP if the size is anything above a few MB for administrative reasons. HTTP doesn't allow you to limit connections and bandwidth could be incidentally mashed into virtually nothing per user. You can limit not only the number of active downloads, but even who can download if you wanted.

    Think of almost every Linux distribution - they use FTP. Why? Ever tried downloading something, connected at a smooth 100k/s or something and found, a few minutes later, you're pulling 2k/s? That USUALLY doesn't happen with FTP. Once you're in, you're in.

    If you have tiny files, of course, logic dictates you go with HTTP. But for anything of size, do *yourself* a favor and go with FTP.

    Adam

    1. Re:FTP's statefulness by rcw-home · · Score: 1
      HTTP doesn't allow you to limit connections

      Actually most servers (including Apache and IIS) let you do just that.

      Think of almost every Linux distribution - they use FTP.

      Debian's apt-get default config file contacts servers via HTTP. The debian admins (coincidentally the same people that wrote the http and ftp clients built in to apt-get) concluded that http was a better default.

      Ever tried downloading something, connected at a smooth 100k/s or something and found, a few minutes later, you're pulling 2k/s? That USUALLY doesn't happen with FTP.

      Actually it happens exactly as often with HTTP as with FTP, for exactly the same reasons, neither of which have anything to do with the protocols.

      But for anything of size, do *yourself* a favor and go with FTP.

      I would thoroughly disagree with this opinion. Get a resuming HTTP client.

    2. Re:FTP's statefulness by sethadam1 · · Score: 1

      Well, I won't get into a spat about it, but...

      Actually most servers (including Apache and IIS) let you do just that.

      Name one that has an HTTP link that won't download when you click it. I've never seen it.

      Debian's apt-get default config file contacts servers via HTTP

      No doubt because configuration of a source server would be much tougher with FTP than with HTTP. Of course, the point of a source server is much different than a website offering a few downloads. I was really referring to ISO downloads.

      Actually it happens exactly as often with HTTP as with FTP, for exactly the same reasons, neither of which have anything to do with the protocols.

      This isn't addressing what I said. I said that with FTP you can limit your connections with ease, and therefore, control how much bandwidth each user is getting. I didn't assert it has anything to do with the protocols.

      I would thoroughly disagree with this opinion. Get a resuming HTTP client.

      First off, if the guy could write his own download manager, this would be a moot point. Secondly, he's not putting software on a client, he's hosting it. Thirdly....umm....why?

  121. Re:Jealous? by Anonymous Coward · · Score: 0, Offtopic

    I know you are..

  122. Bit Torrent by voidref · · Score: 1

    I don't know why, but no one has bothered to suggest something more cutting edge, like Bit Torrent.

  123. Depends! by Anonymous Coward · · Score: 0

    If you provide files to normal people, use HTTP. If you provide files only dumb linux geeks would download, provide all protocols you can implement. Just like everyone of them masturbates to different kinds of pr0n, each of them has his favourite protocol for transferring files.

  124. Bit Torrent !!! by Anonymous Coward · · Score: 0

    BitTorrent is the coolest file transfer idea around. Basically you have a central "server" that has the whole file and all the people trying to get the file download a little chunk. Then they all share the little chunk they have with every other person trying to download it. This way you have distributed bandwidth among all of your clients for uploading, and the more people getting the faster it goes.

    http://bitconjurer.org/BitTorrent/

  125. I don't believe there is anonymous sftp... by emil · · Score: 4, Interesting

    What I don't care for with FTP is the continuous setup/teardown of data connections. What is even worse with active FTP is that the client side of the data connection establishes server ports, and the server becomes the client (I'd like to be able to use plug-gw from the TIS FWTK for FTP, but this is not possible for the data connections). However, even when enabling passive FTP, the data connections are too prone to lockup. The difficulty of implementing all of this in C probably contributes to the FTP server vulnerabilities.

    Still, if you want both (optionally anonymous) upload ability and access from a web browser, FTP is the only game in town.

    From the network perspective, the rsh/rcp mechanism is cleaner (in that there is only one connection), but it still has the problem of either passing cleartext authentication or establishing unreasonable levels of trust with trivial authentication. In addition, with rcp syntax you must know much more about the path to a file, and there is no real "browsing."

    Many say that SSH is the panacea for these problems, but sometimes I am not concerned about encryption and I just want to quickly transfer a file. The SSH man pages indicate that encryption can be disabled, but I have never been able to make this work. SCP also has never been implemented in a browser for file transfers. I should also say that I've never used sftp, because it has so little support.

    Someday, we will have a good, encrypted file transfer protocol (and reliable implementations of that protocol). Sorry to say, but ftp, rcp, and scp are not it. What will this new protocol support?

    1. Stateless operation a la NFS and FSP.
    2. Unlike early (non-V3) NFS, selection of either TCP or UDP for lossy or non-lossy networks.
    3. Support for a centralized authentication key repository (a la Verisign), but support also for locally-defined, non-registered keys.
    4. Support for both encrypted and non-encrypted transfers.
    5. Multiple client connections per server, possibly implemented with threads (do not spawn one server process per client a la Samba, ftpd, httpd, etc.).
    6. Support for chroot operation on UNIX, without the need for implementing /bin/ls, libc, passwd, et al.
    7. And, of course, we need to keep compression.

    Boy, I never thought that I could rant about file transfer software for so long!

    1. Re:I don't believe there is anonymous sftp... by pyros · · Score: 1

      gftp in linux supports sftp. For windows there's SSH.com's workstation, which is free for non-commercial use has a nice sftp GUI. There's also FileZilla for windows, which does both ftp and sftp. They all work quite well and have GUI goodness.

    2. Re:I don't believe there is anonymous sftp... by norweigiantroll · · Score: 1

      SCP also has never been implemented in a browser for file transfers.

      Actually, I think KDE 3.1 one has a KIOSlave component (or whatever) for SFTP/SCP so it should be possible with Konqueror 3.1. Haven't tried it yet though.

    3. Re:I don't believe there is anonymous sftp... by Anonymous Coward · · Score: 0

      SCP has been implemented as a browser interface, see: http://winscp.vse.cz/eng/

      If it can be done for Windowz, it can be done for *nix

    4. Re:I don't believe there is anonymous sftp... by Anonymous Coward · · Score: 0

      Seems that HTTP fullfils 6 of your 7 requirements -- just use a threaded httpd and not Apache 1.x.

      The only one missing is UDP, and I have no idea why you'd want to transfer files over that.

    5. Re:I don't believe there is anonymous sftp... by emil · · Score: 2, Insightful

      http support for self-signed keys is weak - it complains too much.

      http upload is weak, and the method to accomplish an http upload is akward.

      Why would I want to use UDP? Don't you imagine that there were performance reasons behind the choice of UDP for NFS?

      cli support for http is weak - show me how you upload with wget.

      Since when did Apache run chroot?

      Funny, I don't remember linking in zlib for compressed http streams the last time I built apache (let alone bzip2)...

    6. Re:I don't believe there is anonymous sftp... by Anonymous Coward · · Score: 0

      For win32 there is a pretty well done SCP client with split window browsing for local and remote.

      It can be found at http://winscp.vse.cz/eng/

      Should note that it is open source and is based off of the PuTTy (http://www.chiark.greenend.org.uk/~sgtatham/putty /) ssh core libraries that have become pretty popular for win32 as well.

      Cheers.

    7. Re:I don't believe there is anonymous sftp... by Anonymous Coward · · Score: 0

      http support for self-signed keys is weak - it complains too much

      Both Netscape and IE have infrastructure for distributing certs with no complaints. HTTP clients are far more sophisticated in this dept than almost anything else out there. The fact that it warns users about 'self-signed' stuff just shows the level of encryption support in the clients. Sorry that's not good enough.

      cli support for http is weak - show me how you upload with wget.

      Then maybe the CLI people should fix that. HTTP WebDAV GUIs are virtually transparent on Windows and OS X. Not a protocol issue.

      http upload is weak, and the method to accomplish an http upload is akward

      HTTP upload works exactly like HTTP download. There's nothing weak about it, except maybe your tools. (Don't confuse the lame INPUT TYPE='file' with the protocol. See the GUI clients.) ... various assumptions that HTTP == Apache ...

      Don't you imagine that there were performance reasons behind the choice of UDP for NFS?

      I wasn't around in 1982 so I can't say.

    8. Re:I don't believe there is anonymous sftp... by sveinb · · Score: 1

      > Still, if you want both (optionally anonymous) upload ability and access from a web browser, FTP is the only game in town.

      No way! HTTP can POST data. All web browsers support this: You get a file dialogue to select the file to upload. There is no size limitation. I don't know if browsers support FTP upload, though.

    9. Re:I don't believe there is anonymous sftp... by emil · · Score: 1
      Both Netscape and IE have infrastructure for distributing certs with no complaints. HTTP clients are far more sophisticated in this dept than almost anything else out there. The fact that it warns users about 'self-signed' stuff just shows the level of encryption support in the clients. Sorry that's not good enough.
      1. My SSH currently supports 4 different encryption protocol types, and I can pick the one that I want to use; https does not support this. Which is more advanced?
      2. When I load a page via https, assuming that I receive no warning, I still have no idea who provided me this trusted key. An icon for the issuing authority should appear which, when clicked, leads me to their website. Self-signed keys should just get a question mark, and no annoying dialogs.
      Then maybe the CLI people should fix that. HTTP WebDAV GUIs are virtually transparent on Windows and OS X. Not a protocol issue... HTTP upload works exactly like HTTP download. There's nothing weak about it, except maybe your tools. (Don't confuse the lame INPUT TYPE='file' with the protocol. See the GUI clients.) ... various assumptions that HTTP == Apache ...
      1. The cli people can't fix it, because although uploads are supported via http, browsing the destination is not. Also, any upload mechanism must be supported by an external script/cgi, making standardization impossible. The W3C issuing better upload standards at this stage is unlikely. Conclusion? cli uploads should use a real protocol.
      2. cli has always been an http afterthought; look at how long it took us to get curl.
      3. WebDAV is just a CVS wannabe.
      4. To the end user, protocol issues and implementation issues are indistinguishable.
      5. With 60% of the market, apache is http. (I wish that they would throw their weight around a little more. A commented option in httpd.conf that opens a popup window saying "get a real os" for every page downloaded when the client is win32 would be welcome [at least by me].)
      I wasn't around in 1982 so I can't say.

      On a local, non-lossy network, UDP is more efficient. Surprise, surprise.

    10. Re:I don't believe there is anonymous sftp... by cyb97 · · Score: 1

      GlobalScape CuteFtp Pro 2.0 (payware) supports sftp just as good as ftp...

    11. Re:I don't believe there is anonymous sftp... by gorilla · · Score: 1

      HTTPS does provide choice of encryption menthods, though not all clients do, or make it easy. With Opera, you choose File->Preferences->Security->Configure SSL2 or Configure SSL3, and you get a list of protocols you want to enable. When the SSL connection is established, the two ends share a list of protocols they support, and the highest common one is used, or you get a failure. So if you want to force triple DES, you simply disable every other protocol, and that's what you get.

    12. Re:I don't believe there is anonymous sftp... by Anonymous Coward · · Score: 0

      I think you make some good points, but I'm still not conviced a new protocol is needed when HTTP does 80% of what you want.

      Many of your complaints could be fixed with a power-user oriented client (Mozilla is schizoid on the level of user it's targetting). Futhermore, any new protocol is going to have the same issues with the bredth and depth of client support -- you might get all of the cmdline switches, but it will be a while before you get desktop integration for those without a "real OS" (harhar -- haven't you scored enough karma on this thread?).

      Also, you might want to look into WebDAV again. I'm not aware of anyone using it like CVS, but usually as a FTP replacement (e.g. Apple's iDisk service -- you can point your unix shell directly at a webdav mountpoint). This is a protocol with 95+% client marketshare and is going to get very big in the next few years.

    13. Re:I don't believe there is anonymous sftp... by johnnyb · · Score: 1

      The most recent WS_FTP pro supports sftp as well. It's becoming more and more common.

    14. Re:I don't believe there is anonymous sftp... by entrigant · · Score: 1

      KDE includes a kio_slave for sftp access from konqueror. Works quite well if you ask me.

  126. Only those amatur wimps... by JungleBoy · · Score: 1

    As far as I can tell, only the amatur wimps using http think that ftp is a crumbling legacy protocol full of security holes.

    I think FTP got a bad name security wise because of wu-ftpd, which is known for its long and glorious tradition of remote root exploits.

    I have to use FTP every single day, but mostly for big data transfers. Proftpd has served me well.

    --
    "You never know when some crazed rodent with cold feet might be running loose in your pants."
    -Calvin
  127. FTP can be restarted. HTTP can't. by mellon · · Score: 1

    That's pretty much the only reason I'd use FTP over HTTP. When you're doing bulk transfers of large files over a potentially lossy connection, the ability to restart is really nice. By restart, I mean finish the rest of an FTP transfer that failed in the middle.

    Of course, you have to have an FTP client that supports this.

  128. Chalk, cheese. by tarquin_fim_bim · · Score: 0

    Both compliment a nice bottle of Chablis.

  129. Peer2Peer by Sri+Ramkrishna · · Score: 1

    Well, if you really want to be on the cutting edge why don't you use P2P? That way you can even spread the load as well and not use as much bandwidth. You don't have to use gnutella or kaaza there are other systems out there that you can use. Gnutella would probably be the easiest but it's a nice way to be able to serve files.

    Now if you want to serve private files I'm sure there are probably ways to do this as well. I'm not sure. But if you're doing anonymous you might as well use P2P.

    Here's a start:
    http://www.badblue.com/helpgnu.htm

    It's a windows product but it's a start.

    sri

  130. weak question, by Openadvocate · · Score: 4, Insightful

    The question does not contain enough information to form a proper answer.
    Don't start with finding the solution, figure out what it is you want, what you want it to do and then find the right tool. We can not tell you which is right with almost no information about the use of it, for what and what is the average user profile etc.
    HTTP and FTP can be equally insecure, but it shouldn't be much of a job to properly secure a ftp.

    --
    my sig
  131. USE HTTP!!!!! It is cache-able by Anonymous Coward · · Score: 1, Interesting

    Use HTTP and don't make your server names unique (use round-robin DNS instead). That way broadband ISPs that use caching will only need to download your file once in a while. This is good because (a) you save money on transfer charges, and there is more bandwidth available for you, and (b) the broadband provider saves money on bandwidth AND delivers the file faster to its customers. It's win/win. There are algorythms to make ensure 'freshness' (or use a unique filename for each version if you have frequent changes.) Seriously... go HTTP only.

  132. Re:FTP _MUCH_ faster than HTTP (wrong) by Anonymous Coward · · Score: 0
    HTTP can hope for around 60% max for a single connection? I guess the 80% of my theoretical max that I consistently see is my imagination?



    Gimme a break. HTTP is NO slower than using a raw socket blast of the file for large files -- unless you use transfer encoding, which you probably won't for large file transers, the only overhead beyond the raw socket method is the tiny HTTP header.

  133. Convenience's sake... by Anonymous Coward · · Score: 2, Insightful

    From the end-user's perspective, downloading via http is more convenient, especially if you're on a corporate network and have to go thru Squid proxy since ftp-by-browser-thru-squid just sucks.

  134. WRONG! WRONG! WRONG! by Anonymous Coward · · Score: 0

    How come you don't know this yet have a 4-digit user id on slashdot? Under what rock have you been hiding the last years?

    1. Re:WRONG! WRONG! WRONG! by Anonymous Coward · · Score: 0

      elaborate please

  135. People are more likely to find the files on HTTP by weeble · · Score: 3, Insightful

    As far as I know Google does not spider ftp archives. Therefore if you want people to be able to search for all the files offered (including inside word processing documents and PDFs) then you are better going with http.

    I think that the ability for people to find the files using a search engine outweigh the other considerations if you are seeking to make the files public.

    :-)

    --
    Slashdot Beta should die a painful death.
  136. Unfortunately, its not that easy ... by kveton · · Score: 1

    rsync is out of the question; it simply doesn't scale for more than a few clients (rsync of the portage tree for the gentoo mirror here on ftp.oregonstate.edu abuses that machine).

    ftp is nice because we can limit the number of connections but that isn't fine-grained enough; if i have 150 connections available, I might have 150 dial-up users or 150 broadband users.

    http will let me rate limit but it doesn't have the limited connection handling that ftp does.

    I would say provide ftp & http and get your stuff hosted on a few well-connected mirrors if its fairly busy.

  137. PASV mode still opens a separate data connection by Anonymous Coward · · Score: 1, Informative

    All PASV mode does is allow the client to initiate the data connection, rather than the server. There is still a control connection and a separate data connection.

    This can be helpful when the client is NAT'ed, otherwise the client will send a PORT command with an unroutable address. Of course, if the server is NAT'ed, the reverse will happen. There are stateful NAT devices that will actually exmaine FTP control connections and rewrite PORT commands, but NAT and FTP are basically a pain in the arse to deal with. Throw some encryption in the mix (sftp) with NAT, and you'll understand why FTP is not long for this world.

    Only on Slashdot could you learn that FTP uses UDP for the data connection or that PASV mode only uses a single socket!

  138. Hmm by RealityThreek · · Score: 1

    I'm pretty sure the only difference between HTTP and FTP is the connection and handling of transfers. TCP ends up doing the actual file transfer. Write an FTP and HTTP server some time.

    I'm not sure if this has already been said, but I hadn't seen it yet. :)

    --
    :wq
  139. Jeez, isn't everybody still using Kermit? by Snork+Asaurus · · Score: 1

    It seems like only yesterday...

    --
    Sigs are bad for your health.
  140. HTTP vs FTP by piranha(jpl) · · Score: 2, Informative

    Each has their place.

    FTP was designed for interfacing with the filesystem of a remote Unix system, with the filesystem permissions that are granted to the user you log in as. FTP lets you browse the hierarchy, including examining ownership, permission, and symlink targets; pretty much the same as what you get with 'ls -l'. Apache does file listings, but only shows file names, last modification dates, and size. This makes FTP more suitable than HTTP for remote mirroring of directory trees. This also makes it easier to "browse" what an FTP server has to offer, on a directory-by-directory basis.

    With FTP, the server prints a response when a client connects. Usually, the client sends a user name, password, the 'SYST' command, and asks for the current working directory, tells the server what mode (ASCII or binary) it wants, changes to the directory with the file it needs, sends a PORT command, then finally requests the file. With HTTP, the client connects, sends a request, and the server responds. That's 8 client commands and 9 server responses with FTP, as opposed to 1/1 with HTTP. Each time a command is sent, the client has to wait for the server to respond. The latency adds up, and that means, especially on high-latency connections, FTP is slower to initiate and begin downloading than HTTP. Who said HTTP is slower?

    Regarding reliability, both protocols and modern implementations of their clients and servers have features to resume a broken download from where it left off. Who says one is more reliable than the other?

    HTTP is more simple than FTP. As far as I can tell, in FTP "active mode", the client sends a PORT command with an IP address and port number that is listening. In "passive mode", the server sends an IP address and port number that is listening, after the PASV command. These address/port combinations are used for the actual file transfer.

    Active mode doesn't work if there is NAT between the client and the server, unless the NAT system rewrites the packets so that the IP address the server sees in the PORT command is the outside, external address of the NAT system. When an FTP server is behind NAT, passive mode cannot be used without a similar kluge; it must get an outside-world IP address to connect to from the client, which active-mode PORT does. If both client and server are behind NAT, then one of these NAT kluges must be in effect for file transfer to be possible.

    This address/port nonsense could be part of the security concern with FTP. I also believe older FTP implementations allowed the client (in active mode) or server (in passive mode) to specify arbitrary address/port combinations, so that the FTP server or client could be used as a proxy in an attack. Is this still the case?

    With HTTP, transfers are conducted on the same TCP connection as control is on, and therefore doesn't need to concern itself with IP addresses and ports, and the people using it have fewer NAT headaches.

  141. Why /.? by Piquan · · Score: 4, Funny

    Let me get this straight. You went to search the web and got conflicting, likely ill-informed, and inconclusive reports. So you went to Slashdot?

    1. Re:Why /.? by solferino · · Score: 1

      made me laugh, thanks

  142. p2p? by erikdotla · · Score: 1

    Put it on Kazaa as "Britney23489023.mpg" and just publish the filename. :)

    Just use both.

    --
    # Erik
  143. Depends on the situation. by SWPadnos · · Score: 3, Informative

    As many people have said, it depends.

    FTP has a great advantage in that you can request multiple files at the same time: mget instead of get. Additionally, you can use wildcards in the names, so you can select categories / directories of files with very short commands. (mget *.mp3 *.m3u ...)

    Modern browsers allow you to transfer multiple files simultaneously, but they don't queue files for you - FTP will. This may be important if connections might get dropped - the FTP transfer will complete the first file, then move on to the next. In the event of an interruption, you will have some complete files, and one partial (which you can likely resume). For multiple simultaneous transfers - from an http browser - you may have some smaller files finished, but it's likely that all larger files will be partials, and will need to be retransmitted in their entirety, since http doesn't quite support resuming a previous download.

    So, if you're going to have a web page with many individual links, and you think that most people will download one or two files, http will probably suffice. If you expect people to want multiple files, or that they will want to be able to select groups of files with wildcards (tortuous with pointy-clicky things), then you should have FTP.

    It's not that hard to set up both, and that's probably the best solution.

    --
    - The Sigless Wonder
    1. Re:Depends on the situation. by Utopia · · Score: 1

      mget is a FTP client command.
      FTP servers don't understand mget.
      When you issue a mget the FTP client will issue seperate requests for each file.

      You can get similar functionality in HTTP using WebDAV clients.

    2. Re:Depends on the situation. by Reziac · · Score: 1

      Your various points are exactly why I gave up other methods the moment I discovered Getright (which I can't say enough about as well-designed program -- really an FTP client with a fancy front end and queue manager. It speaks to HTTP too.)

      Personally, given an option, I'll take FTP every time. Especially when I don't know exactly what files I'll want til I see 'em on the server.

      --
      ~REZ~ #43301. Who'd fake being me anyway?
  144. Use both, but do HTTP for caching benefits by swb · · Score: 1

    You may save yourself a lot of bandwidth by using HTTP, especially if you set it up as a preferred method for the clients, since those downloads may get cached at various places.

    Be sure to implement proper expires for your stuff, though, so people don't get frustrated with cached content.

  145. Use HTTP but... by Bert690 · · Score: 1

    ... be aware the IE limits max connections to a single server to 2. So if you open up two big concurrent downloads, IE won't let you access anything else on the site until one of the downloads completes. It doesn't give a warning or anything, it just hangs there waiting for the download to terminate.... A solution is to use a different domain name for your large files to prevent the browser from failing to load your "regular" pages. Another issue with IE is that it seems to ignore the content-length header. Thus if the connection closes early for whatever reason, IE will treat the download as "complete" even if the length doesn't match content-length. This has caused me more than one corrupt download in the past.

    HTTP is as reliable and fast as FTP, but shitty browsers (IE) can still cause problems. This isn't a fundamental limitation of HTTP though.

    1. Re:Use HTTP but... by Utopia · · Score: 1

      limit of 2 connections per server is a recommendation in the HTTP spec.

      You can change this IE behavior to exceed the limit in the registry

      Edit
      HKEY_CURRENT_USER\Software\Microsoft\Windo ws\Curre ntVersion\Internet Settings

      MaxConnectionsPerServer REG_DWORD (Default 2)
      MaxConnectionsPer1_0Server REG_DWORD (Default 4)

  146. Use HTTP with WebDAV by epeus · · Score: 1

    This give you the mountability of directories that ftp provides.

  147. Look at all the stupid answers... by PincheGab · · Score: 2, Funny
    Why is it that some /. questions posted are so dang stupid? We are seeing so many stupid and smart-assed answers because the questions is so awfully phrased. We are not made aware of the context of the use, the kinds of people doing the downloading, the download material, security requirements, the implementor skillset/proficiency, the other existing technology at the server location, the technology used to download, etc... In short, all the information really necessary to recommend any download method halfway seriously.

    So we are left to be smart-assed and provide shots in the dark as to what the "best" solution is to this.

    1. Re:Look at all the stupid answers... by jonr · · Score: 1

      You mean we are supposed to get all the specs before starting working? Sacre Bleu! Why didn't somebody tell me this when I started working in the IT business!!
      J.

  148. Re:My opinion by greenrom · · Score: 2, Interesting
    Well, there is one big security difference I can think of. Assuming you want to password protect your files, FTP authentication is sent as plaintext so anyone with a sniffer could recover the username and password. With HTTP, you have the option of digest authentication which only sends a MD5 hash of the username, password, and some other unique information.

    Of course, since these days most networks use switches instead of hubs, one has to wonder how much of a security risk sniffers are anyway. I guess there's always the possibility of ARP poisoning or some rogue router between the source and destination, but honestly, how likely is that? I guess it just depends on how secure you need your data to be.

  149. HTTP or FTP by Anonymous Coward · · Score: 1, Insightful
    Who is your target client? Is it other admins or tech-savvy users? Or is it customers that are downloading updates? Odds are you are not going to want to run what 90% of the folks on /. are recommending. FTP or HTTP. Either or both. 99.99999% of the users out there do not have a sftp, rsync, or gopher client.

    You don't need to use something with encryption like HTTPS or SFTP. These are publicly available files, right? I do recommend you post md5sums for each of these files both in the download directory and on the webpage that links to each of these files.

    HTTP is most likely to get cached by caching proxies. So if your target audience is likely to be behind a caching proxy (Unv campus?) and you want to save yourself some bandwidth, use HTTP on a dedicated port or box so you can control concurrent downloads. HTTP might also get you through more downloads. Then again if someone's firewall will only let them get to port 80, they're too stupid to be downloading files from me anyhow.

    Personally I'd recommend FTP. It's easier to control the number of concurrent downloads, concurrent connections from a single IP, transfer speeds, and integrates well with your authenticated uploads by yourself or whatever other person will be uploading files for download. Saying that FTP is less secure than HTTP is complete BS. Both have the same level of insecurity. The most common FTP daemon (WU-FTPD) has had horiffic security holes in the past which is why no one in their right mind should use it. ProFTPd on the other hand has had very few security problems (usually long after the affected release has been surpassed by a couple new releases at least). I highly recommend you look into ProFTPd for and FTP solution. You can always offer and HTTP solution but I highly recommend you limit the concurrent number of transfer if you use HTTP.

  150. FTP has filenames, http doesn't.... by dybdahl · · Score: 1

    There is one thing you cannot use http for: Specifying the filename on the client computer. The URL does not specify the file extension (a php file can output a png file, for instance), only the mime type can give a hint.

    But if you want to serve a firmware file, for instance, you might use an uncommon file extension like ".fir". This filename extension cannot be served correctly via http, only via ftp. Check out how it works on a Macintosh if you don't believe it :-)

    Dybdahl.

  151. http is the only way by stevefox · · Score: 1

    I wrote one of the first download managers years ago that resumes interupted downloads of FTP and HTTP. From my point of view FTP is a bitch. FTP is a lot slower to actually start the download. You have to use 2 connections. One to send the commands and one to recieve the data. You do not just request the file in one command like HTTP. You must connect, set the current directory, tell the FTP server what mode to use etc., then start receiving the file on the other connection. FTP is a tool for creating new folders, deleting, uploading etc. HTTP is the way to go for downloads.

  152. forget ftp, use http by Anonymous Coward · · Score: 0

    cause everyone is guaranteed to have working http acces! while ftp might not work under some circumstances!

  153. Re:PASV mode still opens a separate data connectio by JPriest · · Score: 1

    Thank you Mr. AC and well said. Someone please mod this to something that doesn't suck to help eliminate the blind confusion that is Slashdot trying to figure out what FTP is.

    --
    Saying Java is nice because it works on all OS's is like saying that anal sex is nice because it works on all genders.
  154. HTTP has never failed me. by davidsturnbull · · Score: 1

    I serve 1-6MB files to two clients all month, averaging around 100GB per month. Actually, they're mp3s and the clients are just xmms boxes around the house. Ocassionally they'll be playing a song and half way through just skip to the next song, but it's usually days between occurances (every couple of gigabytes, or every couple of hundred files).
    I think it's due to the streaming nature of the transfer, and I doubt it'd occur with proper transfers.

    On the other hand, FTP will max out my 100MBit ethernet, while HTTP will get maybe a few megs per second. FTP is probably better on system resources, and if you have a phat pipe, probably maxes it out easier.

  155. 9 out of 10 Anonymous Cowards agree by Anonymous Coward · · Score: 1, Funny

    ZModem-1k can kick both FTP and HTTP's asses. It's fast and can reconnect. It can even send filenames! Quite frankly, I don't see why you are still using 20+ year old protocols. ZModem came to us in the 80s, way more recent than the crumbling Internet you are referring to.

    Well, I have to go now. Now you can go back putting that chrome exhaust pipe on your Civic.

  156. Sneakernet by sulli · · Score: 0, Offtopic
    Burn CDs of the data and hand them out.

    Better yet, if you have the budget, use iPods. Your users will thank you.

    --

    sulli
    RTFJ.
  157. Resume by netkgb · · Score: 1

    Most web browsers do not support resumes for files. You need 3rd party add-ons. Resume is just a standard command in FTP.

  158. My favorite ftp client by whovian · · Score: 2, Informative

    is ncftp. It's got filename completion and all the file shell commands. I resort to it when mozilla chokes (which is most of the time) -- especially when getting large files.

    --
    To-do List: Receive telemarketing call during a tornado warning. Check.
  159. Protocol USE; p80 towards ANYTHING OUT. by Anonymous Coward · · Score: 0

    You arses. You missed it all.

    The important point of this is that large-scale networks want to contol traffic. This is what QoS is about. This is a valid goal, and easily (AND CHEAPLY) implemented when traffic regulation is handled on a per-packet basis.

    Y'all can stuff gophers, ferengi and other badgers down the port 80 pipe - with the end result being that we can no longer maintain any QoS.

    To make this practical for you keyboard-drooling SUPER_@)(*$WISKED high speed home xDSL/CABLE clan; imagine your XP firewall sending your credit card info out via port 80 'cause yer dumb arse let it do so, with mucho no thinkola about WHY it let that content out.

    FUCKIT. let's just let ALL apps fire and request data via port 80.. firewalls and traffic control be damned. Push the problem further up the stack. Why NOT? It's *EASY* to code, right?!

    1. Re:Protocol USE; p80 towards ANYTHING OUT. by Anonymous Coward · · Score: 0

      So block port 80 and set up an web proxy that only allows legitimate uses, whiner.

  160. Why not use BitTorrent ? by Freezing+Polaris · · Score: 1

    Use Bit Torrent over a http server, and you get scalability, download resuming and fault tolerance almost for free. Plus, it's definitely fashionable.

    --

    All generalizations are false, including this one...

  161. it depends by BarrettAnderson · · Score: 0

    if you're running a huge file archive, do FTP. If this same archive has screen shots and descriptions and stuff, use HTTP (both). If you're lazy and only want to use one of the 2, stick to HTTP, there's more for it in the future.

  162. FTP - what it's for! by modme2 · · Score: 1

    File Transfer Protocol enuf said? :)

  163. NO! by Anonymous Coward · · Score: 0

    i'm not about to install a p2p programm just to download some file. and if you want me to use my bandwith to upload your file to other people, sorry, forget about it. and p2p downloads are usually much less reliable then http downloads. also, those clients are a security hazard. plus the intregrity of the downloaded files is not guaranteed.

    1. Re:NO! by blixel · · Score: 1

      i'm not about to install a p2p programm just to download some file.

      I agree. Who the heck wants to install a single purpose applet or program just to get a file?

      and if you want me to use my bandwith to upload your file to other people, sorry, forget about it.

      I agree. My upstream is only 40KBytes, I don't want to share it.

      and p2p downloads are usually much less reliable then http downloads.

      I definately agree.

      also, those clients are a security hazard.

      I definately agree. Downloading from a "trusted" website gives me at least some peace of mind that I'm not downloading a virus. Granted it's not guranteed - but it's far less likely to get infected from a website than it is form Joe Script Kidie.

      plus the intregrity of the downloaded files is not guaranteed.

      That's a bit redudant with the above 2 points.

  164. Take advantage of proxies by opusman · · Score: 1

    Many ISPs use transparent HTTP proxies these days. If your files are cached by an ISPs proxy it will reduce your own bandwidth use, which is always a good thing.

  165. Fundamentally, it depends on the client by EdinBear · · Score: 1

    As the old Perl adage states, "There's more than one way to do it"... If you consider the various options as being different levels of complexity and control, it really does depend on the likely technology that your target audience has, and their technical ability (all of which has already been mentioned).

    I'd say that by far the simplest option is HTTP - I'm assuming that your server is Unix-like, so we're talking Apache, which most distros have as default (or easily installed). FTP is also easily available, but introduces security and authentication issues.

    If you have control of your clients, then SFTP is a good, secure solution, but takes more setting up and introduces some bandwith issues.

    You have to decide what level of service is most appropriate, and how much effort and time you have spare to put it in place.

    S.

  166. My suggestion by joediga · · Score: 1

    Just burn the files on CDs and distribute them to the people who want them by US mail. Sure, it's slower and maybe not secure, but you won't be flamed by the FTPers and HTTPers. (Watch out for FedExers though...)

    --
    -- ignoring AC's since... well, always --
  167. Use Publicfile for both by Leme · · Score: 1

    The answer is simple ... publicfile by djb.

    http://cr.yp.to/publicfile.html

    You can share files via FTP or HTTP without running a FTP server or a HTTP server.

    No security holes to worry about either.

  168. Who Cares. by Pharmboy · · Score: 1

    Frankly, who gives a damn what the "experts" say. If someone refuses to download your file served ala HTTP because its "n0t KewL" then the problem is on the wireless end of their keyboard. This "elite" attitude is so old, so outdated, and frankly, no longer elite.

    Reliablility isn't so much an issue for a file that is only 1 to 6mb. If you already have a HTTP server, and don't have an anonymous FTP server, that SHOULD figure in your decision.

    You should make the file available to download in the format that serves you best and offers the easiest way for people to get it. Don't get caught in the trap of following what select 'experts' say you should do.

    --
    Tequila: It's not just for breakfast anymore!
  169. FTP: Better Than HTTP? -troller by commonloon · · Score: 1

    If you think I am going to fall for that old troll then you have another thing coming! You probably think SCSI is better than IDE as well.

    1. Re:FTP: Better Than HTTP? -troller by smash · · Score: 1
      SCSI IS better than IDE.

      More devices, Ultra160/Ultra320, more than one command on the bus at a time, longer cables, etc, etc...

      Yes, it is a shitload more expensive, and not IMHO worth the extra cost for 99% of cases, but claiming IDE to be superior is retarded.

      smash.

      --
      I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
  170. FTP Security by kalidasa · · Score: 1

    Correct me if I'm wrong, but FTP security holes don't matter if you're talking about non-sensitive data with non-sensitive user names and passwords. In that case, I'd go FTP, with a backup via HTTP for those who for one reason or another can't access ftp (if say only port 80 is open).

  171. HTTP, hands down by Percy_Blakeney · · Score: 5, Informative
    As I understand it, your requirements are:

    1. Download only
    2. 1-6 MB files

      I also assume the following:

    3. You don't need intricate access controls
    4. Non-technical to Somewhat-technical users

    I would say that you should go with HTTP for sure. Of course, you can provide both, but there are some key reasons for using HTTP.

    Easier Configuration Perhaps I'm just not that swift, but I've found that web servers (including Apache) are easier to configure. This is especially true if you have any previous web server experience. Of course, the FTP server is more complex due to its additional features that HTTP doesn't have, but assuming that (c) is true, then you won't need to mess with group access control rights and file uploads.

    Speed This whole "FTP is faster" stuff is not true. HTTP does not have a lot more overhead than FTP; it may even have less overhead than FTP in certain cases. Even when it does have more overhead, it is in the order of 100-200 bytes, which is too small to care about. HTTP always uses binary transfers and just spits out the whole file on the same connection as the request. FTP needs to build a data connection for every single data transfer, which can slow things down and even occasionally introduce problems.

    Easier for Users Given assumption (d), your users will be much more familiar with HTTP URLs than FTP addresses. You could just use FTP URLs and let their web browsers download the files, but then you lose the benefit of resuming partial downloads.

    Simple Access Controls Though some people need to have complex user access rules, you may very well just need simple access controls. HTTP provides this (look at Apache's .htaccess file), and you can even integrate Apache's authentication routines into PAM, if you are really hard core.

    There are a few main areas where FTP currently holds sway:

    Partial Downloads Web browsers typically don't support partial downloads, but the fact of the matter is that the HTTP protocol does support it (see the Range header.) The next generation of web browsers may very well include this feature.

    User Controls Addressed above.

    File Uploads Again, HTTP does support this feature but most browsers don't support it well. Look to WebDAV in the future to provide better support.

    In summary, just use HTTP unless you need complex access rules, resumption of partial download, or file uploading. It will be easier both on you and your users.

    1. Re:HTTP, hands down by hysterion · · Score: 1
      assuming that (c) is true,...
      Given assumption (d),..
      Kézako? By "(c)" do you mean the Axiom of Choice? The Continuum Hypothesis? The Colin Conjectures on Al Quaeda?
  172. FTAM! by mabinogi · · Score: 2, Interesting

    We had a client a few years ago (about 1998), that we needed to set up data transfer for.
    IBMGSA were running their IT systems, and they decided that FTAM (over OSI) was the way to go, citing FTP's supposed lack of reliability, and lack of features such as resume...

    They were absolutely serious when they said that too.....

    We eventually managed to get the whole setup working (FTAM, OSI, X.25 over an ISDN link)...but it was the most unreliable, cryptic, complicated system I've ever had to deal with...
    A couple of years later, the client ditched IBMGSA, and the company that took over their systems took one look at the FTAM / OSI mess, and threw it out and replaced it with FTP over TCP/IP, and we've never had another problem.

    --
    Advanced users are users too!
  173. FTP is sure to work for everyone! by ponos · · Score: 0, Flamebait

    Well, I'm just a user/programmer/hobbyist and not a network expert, but I have to say I find FTP a more elegant choice. It is a little faster, it is quite reliable, it is the tool for the job (that's why they call it File Transmission Protocol). It's also supported by EVERYTHING, including all major browsers, classical ftp client, "fancy" ftp clients, wget etc. And, last but not least, you can use wildcards over FTP because it is supposed to "mimic" a real filesystem.

    I usually prefer (as a user, always) to do my transfers via FTP. Hell, I'd use ZModem if it was available! (quite faster, and extra speed is always nice if you have a 33.6K modem, anyway it is not relevant but it made me remember the good old days when men where real men and modems where painfully slow).

    P.

  174. Re:My opinion by kasperd · · Score: 1

    download-only policies (ie. just like HTTP)

    That was also what I thought until I read section 9.6 in the HTTP/1.0 specification about the PUT method. If that method is not intended for uploading files, what is the purpose? Of course many HTTP servers does not allow you to use that method.

    --

    Do you care about the security of your wireless mouse?
  175. Re:Hint: If they talk like that, they're not exper by rcw-home · · Score: 1
    The fact that HTTP doesn't use a binary connection to transfer binary files means that, yes, it is frequently slower than FTP.

    False premise, false implication, false conclusion.

  176. even better by lactose99 · · Score: 2, Funny

    just do what I do and mail people newly-obseleted floppy disks

    --
    Fully licensed blockchain psychiatrist
  177. Go with FTP by Billly+Gates · · Score: 0, Flamebait
    I would be caught dead before using Wu-ftp or any other ftp daemon which has security issues but go with ftp.

    But http is not that much more secure either. Yes apache is more secure then IIS. But it does have vulnerabilities and is listed by the fbi as one of the most dangerous apps that can be cracked as well as IIS.

    I use to have two terrible modem based ISP's before I upgraded to a cable modem. I had alot of bad packets from noise on my line. The speed seems the same but I would have various crc errors sometimes when I download large files over http. I have never had the same problems with FTP. Now since I have a cable modem the problems have went away but it seems that ftp has better error checking then http but I am not an expert in the protocals. Just do your research before you pick a ftp or http daemon.

    If you use a Linux/Unix box make sure you turn off inet. FreeBSD 5.0 sysinstall makes this very easy to do. Also you do not need to use the latest and greatest ftp daemon. The large ones are generally less secure. I heard that the Debian developers created a tiny but free and relativly secure ftp daemon which you may want to use. I do not remember the name and I have never used it so I can not comment but it has been mentioned on slashdot several times why debians ftp site is so secure.

  178. CVS? by Anonymous Coward · · Score: 0

    Seems to me you should just use CVS. Isn't everything supposed to be open source these days anyways ;-)

    1. Re:cvs? by swordgeek · · Score: 1

      Bah! cvs SUCKS!!!

      OK, cvs sucks in the particular instance of serving up relatively static files. There should be a requirement that everyone who sets up an inappropriate cvs server (where ftp or http would be a better idea) should have to write "versions are not files" on a blackboard, by hand, in chalk, 1000 times. I keep seeing sites that have final, stable, production releases of program 'x,' and the only way to get it is cvs. Dumbness.

      Now for actual version concurrency/control, cvs rocks and rocks hard!

      --

      "People who do stupid things with hazardous materials often die." -- Jim Davidson on alt.folklore.urban
  179. College blocking ftp? by ende · · Score: 4, Interesting

    I would say go with http.. my reason is simple.. my college blocks ftp! There are two sides of the story, first off, the complete blocking of ftp started a week ago when they switched firewalls.. they couldn't get the ftp to work, and they decided it wasn't a high priority so they didn't do anything to fix it... After yelling at the IT department for half the day I got the priority up. But besides that.. Even before, when they allowed ftp, it was only active ftp.. I was unable to go to a website, click on a file that is served from ftp:// and download it! I'd have to use flashfxp or another client to d/l files.. I was able to figure that out quickly, but what about the other 99% of the school that wants to download say shareware from download.com or a driver from somewhere.. they are denied! FTP is a superior protocol for file transfer in my opinion, but administrators don't seem to care about it as much as they do http.

    1. Re:College blocking ftp? by The+Ape+With+No+Name · · Score: 2, Funny

      "After yelling at the IT department for half the day"

      You were added to the watch list and the administrators went about doing something more important.

      --
      Comparing it to Windows will be a moot point, since El Dorado is going to have a 40% larger code base than XP.
  180. use ssh ftp (sftp) by Anonymous Coward · · Score: 0

    Simple ftp does not implement encryption. Therefore, sensitive information (such as login info) is sent clear text across the internet for everyone and their cousin to see. ssh isn't guaranteed security either. However, ssh ftp is definately better than simple ftp.

    If you're going to be using Anonymous ftp however, then the added security of ssh may not be required.

  181. NTFS by SlugLord · · Score: 1

    I hate to suggest it to the slashdot crowd, but it'd be much easier just to set up a NTFS/samba share. MSIE will allow users to browse it, it's faster than http, and I don't think it's actually very vulnerable to attacks. Of course Microsoft is evil, yadda yadda, but you'll get a lot of gee whiz points from MSIE users who like the fact that it's just like their computers. (and most people either use windows or know how to use samba)

    1. Re:NTFS by OzJimbob · · Score: 1

      I think the author wants to set up a public server, not a private server. Network shares (whether NTFS, Samba, NFS, whatever) are great on a local network, but you'd never give open access to them on the internet, would you? I've certainly never browsed to a site, clicked on a download link, and seen a network share directory window pop up!

      --
      -"I still believe in revolution; I just don't capitalize it anymore." - srini!
  182. Kermit by Anonymous Coward · · Score: 0

    'nuff said.

  183. Speaking of Secure FTP... by Anonymous Coward · · Score: 0

    Why don't we post some good links to resources on setting up a secure FTP server. It not totally painless (I know the hardway) the info is out there but kind of obsure. I don't even remember what I DID anymore... I remember not knowing how to lock a user into there directory and there was some simple argument that did it, I looked all over before someone showed me, I don't remember that anymore either...

    How about it? Any good tips, tricks, tutorials, on running secure ftp, and all the neat-o things to lock it down?

  184. Slashdot's fortune by rcw-home · · Score: 1
    FTP can be restarted. HTTP can't.

    I'll let slashdot speak for itself:

    One man tells a falsehood, a hundred repeat it as true.

  185. Re:Passive and active FTP by owlstead · · Score: 1

    Yeah. Thats correct. For a good plain text explanation look it up on the Netscape site. FTP is hell for firewalls (I wrote one). With active FTP you need active filtering on the client side, with passive ftp you need to open a whole range of high ports. If you have a cheap router (on the client side) your NAT connection limit may be reached too. As an addititional note: normally you can set which ports the passive ftp clients may connect to in the ftp server configuration. Then you only need to open these specific (>1024) ports. And to top it off: I would use HTTP. Only one connection needed, more (and probably easier to understand) configuration options, better for firewalls, resume also available (mozilla, getright, wget etc), binary stream so not too much overhead, authentication options, encryption....well that should be enough for now. Warper ps. pro ftp: filesystem: segmented downloading, searching archives, linking into filesystems, getting file information etc. etc. etc.

  186. Re:Forget them both.... Anonymity by dmayle · · Score: 4, Insightful

    The reason to use sftp on publicly available files or hhtps is so that people <*cough*>Carnivore</*cough*> can't track what I'm doing online. Sure, they can tell what sites you are visiting, but they can't tell what content you're looking at, or which files you downloaded... Imagine a time when you want to download DeCSS for your linux boxen from a foreign server, but someone is logging your downloads <*cough*>Verizon</*cough*> and the RIAA wants access to those records... If they don't know what you downloaded they can't (potentially unjustly) prosecute you...

  187. FTP *is* obsolete by Gunzour · · Score: 2, Interesting
    I think my answer to the question is: use both if possible.

    But the question brings up another point: FTP is a rather cumbersome protocol for transferring files. Ok, so you have two separate connections for entering commands and for sending data. Why then can I not enter any commands while data is being transferred?? Some FTP clients simulate this capability by open multiple control connections, but it really should be built into the protocol, IMHO.

    HTTP was designed for small text file transfers, and not really for bigger files (although it does usually handle them pretty well).

    I propose an "FTP2" protocol. This protocol will have the following features over and above the original FTP protocol:

    Control connection is fully functional even when data is being transferred

    Multiple data connections are allowed for each control connection (configurable by server operator)

    Ability to queue files for download

    Separate server-wide limits on control and data connections (for example, so I can log in and look around even if all data connections are used up. If I try to download something, it is queued until a data connection frees up. This puts an end to hammering on anon-ftp servers.)

    Modular authentication -- ability to support authentication methods other than clear-text passwords

    Support for encrypted connections

    No server connecting to the client to establish a data connection, eliminating most firewall and NAT problems

    MIME-type support, rather than clunky BIN/ASCII modes.

    1. Re:FTP *is* obsolete by Anonymous Coward · · Score: 0

      I like your ideas for FTP2 but FTP is far from obsolete. Ever try in windows to download a directory that contains multiple recursive subdirectories with several thousand files total? I'd love to see someone try to do that in Internet Explorer. It is so impractical that no one in their right mind would even try. But in FTP it is just a single command...

  188. Re: Passive FTP (formatted) by owlstead · · Score: 1

    Yeah. Thats correct. For a good plain text explanation look it up on the Netscape site. FTP is hell for firewalls (I wrote one). With active FTP you need active filtering on the client side, with passive ftp you need to open a whole range of high ports. If you have a cheap router (on the client side) your NAT connection limit may be reached too.

    As an addititional note: normally you can set which ports the passive ftp clients may connect to in the ftp server configuration. Then you only need to open these specific (>1024) ports.

    And to top it off: I would use HTTP. Only one connection needed, more (and probably easier to understand) configuration options, better for firewalls, resume also available (mozilla, getright, wget etc), binary stream so not too much overhead, authentication options, encryption....well that should be enough for now.

    Warper

    ps. pro ftp: filesystem: segmented downloading, searching archives, linking into filesystems, getting file information etc. etc. etc.

  189. Re: wget by ToyKeeper · · Score: 1

    Topic says it all.

    wget -r -l 0 -H http://slashdot.org/

    Go ahead. Download the entire web. FTP was never this easy. :)

  190. More spiffy ideas... by emil · · Score: 1
    1. Version Lockout - Servers and clients have the public key from some trusted authority. Servers and clients also each maintain a "protocol version number," which is signed by the authority's private key.
      • When a server detects a client with a new (higher) protocol version number, it records this new key, and immediately begins refusing connections from all clients with a lower protocol version number.
      • Clients also record the latest server protocol version number, but all the clients do is store this number. When a server is contacted by a client with a higher server version number, the server immediately shuts down.
      • On startup, the server checks with the trusted authority, and if its version number is old, it immediately shuts down.
      • There is a clearly defined plan of what to do when the trusted authority's private key is stolen or otherwise compromised. Perhaps there is even a schedule of key-regeneration.
    2. Platform lockout - so us 1337 unix people don't have to be bothered by the windows riffraff.
    3. Proxy support - this protocol can be easily proxied.

    Gee, I should really patent some of this stuff.

  191. P2P is less efficient by Anonymous Coward · · Score: 0

    On a global scale, HTTP and FTP are significantly more efficient than P2P. In most cases, the little P2P pirate boxes create more noise pinging eachother than the size of the files they transfer. The problem with FTP and HTTP is, of course, that the publisher has to pay for the bandwidth. P2P allows publishers to externalize costs. In most cases the different P2P servers are stuck in places that simple burn the commons. They consume resources on the common grounds...for example the bandwidth on a local cable. The main thing P2P does is steal bandwidth from telephone companies and businesses, but that's okay. The cost of P2P is lower for publishers because, someone else is paying for it. The technology itself is less efficient than either HTTP or FTP.

  192. What ever happened to fsp? by weave · · Score: 2, Interesting
    What ever happened to fsp? I remember for a while in the early 90s I believe, we (I am a sysadmin at a college) had quite a few problems with students running fsp servers out of their unix accounts. fsp uses udp, not tcp, and sat on a >1024 port so any user could run one and since it wasn't listening on a tcp socket, it didn't stick out as much as other file transfer servers.

    I'm not suggesting this is the answer to your problem, I haven't seen any GUI-based fsp clients (or a unix cli one for ages for that matter).

    But it did seem very useful for what it was designed to do, serve out large files to anonymous outsiders.

    1. Re:What ever happened to fsp? by jmerelo · · Score: 1

      Looks like it's mostly dead: last update to the FAQ comes from 1996. I have found a reference in freshmeat from 2001, though.

  193. PDFs by multipartmixed · · Score: 1

    If you're sending PDF recipes to housewives, DO use FTP. Ever seen what Acrobat does to Apache?

    --

    Do daemons dream of electric sleep()?
  194. didn't you hear? by cygnus · · Score: 3, Funny
    John Doe wants a clickety-click-drag-n-drop client,
    didn't you hear? "john doe" changed his name to "joe sixpack," so we can ridicule his deficiencies more.
    --
    Just raise the taxes on crack.
    1. Re:didn't you hear? by Anonymous Coward · · Score: 0

      I thought he was joe millionaire. Maybe that was just a sham.

    2. Re:didn't you hear? by Stinking+Pig · · Score: 1

      Just don't ridicule him too loudly, because that's Joe Sixpack-Abs and he'll kick your butt right good geekboy.

      --
      "Nothing was broken, and it's been fixed." -- Jon Carroll
    3. Re:didn't you hear? by be-fan · · Score: 1

      Have you seen most of America lately? It's Joe Beergut, more than anything else.

      --
      A deep unwavering belief is a sure sign you're missing something...
    4. Re:didn't you hear? by Anonymous Coward · · Score: 0

      I prefer steve case

  195. DJB by s3ti · · Score: 0

    Use publicfile by Dan Bernstein. A fast and secure ftp/www server. Since you are only serving files this is the perfect solution.

  196. Pay attention to what you say, please. by David+Gould · · Score: 2, Insightful


    Imagine a time when you want to download DeCSS for your linux boxen from a foreign server, but someone is logging your downloads Verizon and the RIAA wants access to those records

    Why in Hell would the Recording Industry Association of America care who has software to break the DVD Content Scrambling System? They market music on CDs, not movies on DVDs.

    Or did you mean to say MPAA?

    Yeah, yeah, it's just a careless error, but things like this make us all sound like a bunch of idiots. If we can't even keep track of which evil corporate organization goes with which issue, then how is anyone supposed to take us seriously?

    --
    David Gould
    main(i){putchar(340056100>>(i-1)*5&31|!!(i<6)<< 6)&&main(++i);}
    1. Re:Pay attention to what you say, please. by dan+the+person · · Score: 1

      the music DVD market is growing at like 200%

    2. Re:Pay attention to what you say, please. by sudog · · Score: 1

      200% every what? Month? Year? Decade?

      Come on you guys. Why are you posting here at all?

    3. Re:Pay attention to what you say, please. by dan+the+person · · Score: 1

      ok, lets say in 01 they sold 200 DVDs. Then in 02 a 200% increase would be 600 DVDs.

    4. Re:Pay attention to what you say, please. by dmayle · · Score: 1

      Actually, I imagine that one day an evil mega-corporation will come to hold the rights to all content in the US, the Right Infringing Association of America... (alright, you caught me, neurons misfired and I typed without thinking...)

    5. Re:Pay attention to what you say, please. by dan+the+person · · Score: 1

      And yes of course, we are talking about increases in annual sales, pretty obvious i would have thought.

      Here's a real example: According to the RIAA, in 2001 Music DVD unit sales increased by 138% to 7.9Milltion. Music DVD revenue increased 137% reaching $190 million compared with $80.9Million in 2000

      Data sourced from:
      http://www.internetnews.com/bus-news/articl e.php/9 80971

    6. Re:Pay attention to what you say, please. by FireBreathingDog · · Score: 1
      oh shit...music DVDs? this is not good!

      think about it: if the record industry manages to move music over to the DVD format from CD, the ripping days of the average citizen may be over. (yes, hax0rz will still r00l, but most people won't)

      given that many DVD players are connected to people's stereos, and many (like me) replaced our CD players with them, we're all unwittingly contributing to providing the record industry with a platform that favors restrictions on content freedom (which I consider to be quite distinct from stealing--by content freedom, i mean the ability to put music I pay for on my iPod)

      when DVD players reach a critical mass, record labels can stop releasing music on CD, move us all over to DVD, and have us over a barrel on content freedom

    7. Re:Pay attention to what you say, please. by Anonymous Coward · · Score: 0
      Yeah, yeah, it's just a careless error, but things like this make us all sound like a bunch of idiots. If we can't even keep track of which evil corporate organization goes with which issue, then how is anyone supposed to take us seriously? While you're nitpicking small errors, here's another one for you: The RIAA/MPAA aren't the corporations that publish the content, they are industry associations to protect it.

    8. Re:Pay attention to what you say, please. by Ninja+Master+Gara · · Score: 1
      think about it: if the record industry manages to move music over to the DVD format from CD, the ripping days of the average citizen may be over. (yes, hax0rz will still r00l, but most people won't)

      Have you noticed the recent onslaught of "DVD2VCD" software? The problem with copying DVDs isn't the encryption, it's the size of the DVD. The encryption is probably the shortest step in the whole process. (Stripping out macrovision is almost an afterthought in the process.)

      When DVD-R/RW/RAM/Whatever the hell dominates the home market, copying Music DVDs will work just fine, and once they're consumer products, I'd lay money that the consumer software to do it will follow, with protected rights to make a backup of music well established. Standalone consumer DVD-to-DVD/R* copy hardware will be close behind.

      --

      ---
      When I grow up, I want to be a kid again.
    9. Re:Pay attention to what you say, please. by Anonymous Coward · · Score: 0

      score one for that there edumacation system. aw, hell, make it two points for good measure.

    10. Re:Pay attention to what you say, please. by mark_lybarger · · Score: 1

      i agree that i don't see dvd's replacing cd's anytime in my life (there will probably be a few more uber huge mediums by then).

      regarding the encryption, which came first the decryption or the compression? i've used lots of the free dvd2vcd software, and they're really nice. i think the encryption was an important milestone for this software. i don't know, maybe they could compress the encrypted stream, but i'll venture to say otherwise.

      i agree the size/medium is a problem. people don't have dvd players in their cars (most of us anyway). people have TONS of consumer portable cd players for music. we have only one or two DVD players in the house and they're stuck to the tube. DVD needs more than to dominate the home market, it needs to dominate the consumer market. It'll need to replace home stereo systems, and car audio systems and portable walkman systems, etc, etc, etc.

    11. Re:Pay attention to what you say, please. by Anonymous Coward · · Score: 0

      Are you guys a bunch of idiots??? Converting DVD's into VCD's????? WTF!

      At last check a good pioneeor A05 DVD-R burner will run you 200 dollars.

      A spool of 100 Rytek DVD-R's will run you about 78 bucks ($.78 per disk) and I just saw duel sided DVD-R media coming down in price.

      Go get yourself a copy of ULead DVD producer and smart ripper...

      Granted, when you copy a DVD it'll go from 1 disk to 2 disks...but oh well... at least it's still DVD quality...

    12. Re:Pay attention to what you say, please. by Anonymous Coward · · Score: 0

      "by content freedom, i mean the ability to put music I pay for on my iPod"...

      You do realize, don't you, that you do not actually pay for the music you purchase. Rather, you pay for the right to use the music. "Content freedom" is not like a civil liberty as you portend. It is you breaking an agreement you've made. It does not make you a thief, but maybe more like a liar...

      Anonymous Coward

  197. My experiences with FTP and HTTP downloads by argonaut · · Score: 5, Informative

    Being in IT for a large Fortune 500 company that sells an operating system among other things (no, not Microsoft), I can share some of my expereinces with you. So take it for what it is worth.

    Our FTP servers run both HTTP and FTP providing the same content in the same directory structure. There are five servers that transfer an average of 1-2 TB (terabyte) per month each, so they are fairly busy. On a busy month each server can go as high as 7 TB of data transferred. File sizes range from 1 KB to to whole CD-ROM and DVD-ROM images. I think the single largest file is 3 GB.

    The logs show a trend of HTTP becoming more popular for the last several years and not stopping. It is currently at 70% of all downloads from the "FTP" servers via HTTP. While the remaining 30% is via FTP. Six years ago (I lost the logs from before this time, they are on a backup tape but I am way too lazy to get that data), it was completely reversed. 75% of downloads were via FTP and 25% were via HTTP. 90% of all transfers are done with a web browser as opposed to an FTP client or wget or something.

    One thing we learned was that many system administrators will download via FTP from the command line directly from the FTP server, especially during a crisis they are trying to resolve. They do this from the system itself and not a workstation. The reasons for this are a bit of a mystery. Feedback has shown that we should never get rid of this or we might be assassinated by our customers. We thought about it once and put out feelers.

    I would say if you don't need to deal with incoming files and you file size is not too large then stick with HTTP. Anything over about 10 MB should go to the FTP server. An FTP server can be more complicated. It seems like the vulnerabilities in FTP daemons has died down in the past year or so. Also, fronting an FTP server with a Layer 4 switch was a lot more tricky because of all the ports involved. If you want people to mirror you then go with FTP or rsync for private mirroring. In reading the feedback, most power users seem to prefer FTP, perhaps because that is what they are used to. Also, depending on the amount of traffic you might need to consider gigabit ethernet.

    The core dumps being uploaded are getting to be huge. Some of those systems have a lot of memory!

    1. Re:My experiences with FTP and HTTP downloads by AtariDatacenter · · Score: 1

      You work for Sun. It is pretty obvious. (But in the case that you don't, your problem sounds exactly like what I face with Sun.) Yes, I download (FTP) files straight to the server that needs it rather than downloading it to my workstation and moving it again to where it is needed.

      Why do I use FTP? Because Sun forgot to include a freaking command line web browser in their operating system. So, I'm forced to FTP for what I need. (Now, I could open up a desktop on the server, assuming it is installed, and try that gawd awful Java based web browser that nothing is compatible with. But that's a lot of effort and I might as well go back to a web browser on my own machine and FTP it to the server.)

      Actually, thanks for reminding me. I'm going to put in a recommendation that we install Lynx on all of our systems.

    2. Re:My experiences with FTP and HTTP downloads by jdavidb · · Score: 1

      One thing we learned was that many system administrators will download via FTP from the command line directly from the FTP server, especially during a crisis they are trying to resolve.

      That's why one of the first things I try to put on a system is wget. I can ftp or http from the commandline without worrying about the protocol or having an FTP client or web browser installed.

  198. Bullshit by multipartmixed · · Score: 1

    It's not HTTP's fault that Microshit can't implement a browser that correctly interprets the "Content-Disposition" MIME header.

    --

    Do daemons dream of electric sleep()?
    1. Re:Bullshit by Anonymous Coward · · Score: 0

      Or "Content-Type" for that matter (if your resource looks like some other type, IE will render it that way in blatant disregard for the actual type). Speaking of things FTP can't do, that's gotta be near the top of the list.

  199. Re:My opinion by snol · · Score: 3, Informative

    It'd be nice if Phoenix and Mozilla would acquire that ability. For some reason the developers' stated position is that it won't happen anytime soon, but one can always vote for the bug anyway.

  200. Fear, Uncertainty and Doubt over FTP! by @madeus · · Score: 1

    FTP is much better.

    Wow - that's quite a statement to make (for someone spreading quite so much Fear Uncertainty and Doubt)!

    HTTP is restricted by browsers, many of which will not support files larger than a certain size

    This is not going be be an issue for anyone using a modern web browser (such as Internet Explorer or Mozilla). To suggest this a a potential problem really is beyond misleading.

    Sacrificing a bit of speed and capabilities such as resume might be made up for with ease of use..

    HTTP is much faster you are sacrificing speed when using FTP (which should be immediately obvious). Using FTP transfer requires additional overhead, greater than that of HTTP, more traffic equals slower download. It also equals greater CPU overhead on your server, which is dramatically noticeable on servers taking many hits.

    HTTP also offers support for resume - I'm astounded that so many posters do not know this. Many browsers, as well as CLI tools such as 'wget' and 'curl' both support HTTP resume (and of course Apache supports it too).

    So, by your own admission, it's easier, and as a point of fact, it's also faster and supports resumable downloads.

    Add to this that not running an FTP server unless you have do reduces your exposure to exploits and that maintaining an FTP server will require more administration then FTP becomes a very hard sell for anything by large downloads (beyond the size the poster has indicated they will be serving).

    There was a time when network connection speeds were so slow that I'd only download files over FTP, as that was the only reliable way to download files, but that was over 6 years ago.

  201. it's in the name by rodolfo.borges · · Score: 1, Flamebait

    FTP is the [F]ile [T]ransfer [P]rotocol.
    period.

  202. rsync will be around in 30 years... by emil · · Score: 1

    ...according to Andrew Tridgell, who says by that time that Samba will be long, long gone.

  203. HTTP simultaneous connections are expensive. by androse · · Score: 3, Informative

    The problem with using HTTP for large file downloads is that, in most cases, it's cheaper ressource-wise to span multiple FTP simultaneous connections than HTTP connections. Of course, this only becomes a real problem if you have more than a few hundred virtual hosts on a single box. So save your httpd processes, and use FTP for large files.

  204. HTTP by togofspookware · · Score: 1

    I say go with HTTP. I've been serving large files (anywhere from 10 MB to half a gigabyte) from Apache with no problems. The only reason you would need FTP is for file uploads, and even that you can do using HTTP (with multipart POST requests or PUT requests, which, unfortunately, most browsers don't seem to support).

    Just about everyone with a omputer'll be able to use HTTP or HTTPS just fine.

    As other have pointed out, HTTP does seem to be more web-browser friendly. When I have the option, I always go with the HTTP link. Half the time my browser doesn't seem to be able to access the FTP server, although I can access it using a regular FTP client.

    The HTTP protool is a lot simpler (write a client in 10-20 lines of Perl simple), and less likely to be a problem for people behind firewalls.

    And you can do '1337 PHP scripting on yer web server :-) It's usually easier to click a link to a file than log into an FTP server and navigate to the right directory, remember to turn binary mode on, and download the file.

    --
    Duct tape, XML, democracy: Not doing the job? Use more.
  205. Ease of Maintanence should be considered. by Anonymous Coward · · Score: 0

    With the small size of your files, ease should be considered. Mainly for the person(s) who is going to maintain the files on the server. If they are not Guru's, select the method that allow the maintainer to keep the files available and up to date with minimal "hand" updating to worry about. Not being able to easily maintaining the site and keeping the files current is often the downfall of a server. User's will be willing to use whatever reasonable method specified if they know that they can get what they need/want. If ease of access by random users is required, remember most browsers will also support starting up an ftp client when specified by a link.

  206. The reason is simple: congestion! by ZorinLynx · · Score: 5, Informative

    Starting multiple TCP connections for a single file download can be advantageous, because of congested network paths.

    If there are 500 TCP downloads ocurring, each download will theoretically get 1/500th the bandwidth.

    Therefore, by opening multiple TCP connections, you will increase the amount of bandwidth for your transfer, at a cost to everyone else using the connection. This is because you've effectively doubled the size of your receive window (one for each connection), causing the host you are downloading from to stuff that many more packets down the pipe.

    The problem is, when everyone does it, it completely negates any advantage to using this method. It also leads to packet loss, since you have that many more TCP connections (each with its own receive window) fighting for pieces of the pie.

    1. Re:The reason is simple: congestion! by Herkules · · Score: 0

      Their is also the problem of how TCP works!

      It will not send a more packets to you until it gets a response that the first packet was received. This means with a ping (roundtriptime) of 10 ms you will not get more than 100 packets per second.

      So that is 100 packets * packet-size (1500B) = 150KB

      So with a second connection you can get the double (If you have the bandwidth =)

      --
      CIA Factbook 2002 (US):"Since 1975, practically all the gains in household income have gone to the top 20% of households
    2. Re:The reason is simple: congestion! by Bert64 · · Score: 1

      This is why tcp windowing exists, it will send you multiple packets and you ACK them all at once.

      --
      http://spamdecoy.net - free throwaway anonymous email - avoid spam!
    3. Re:The reason is simple: congestion! by Herkules · · Score: 0

      Do you know how the size is desided under linux ?

      Is it my recive buffer or what ?

      --
      CIA Factbook 2002 (US):"Since 1975, practically all the gains in household income have gone to the top 20% of households
  207. 'Reliability' of HTTP vs. FTP by @madeus · · Score: 3, Insightful

    Whenever I see a list of FTP mirrors with one HTTP version, the HTTP version is faster and more reliable 9 times out of 10.

    I suspect that's because 99% of people are downloading from one of the FTP servers.


    I put to you that would be more logical to suspect it's because HTTP is faster than FTP as a transfer protocol. It generates less traffic (and uses less CPU overhead) which means downloads end quicker.

    Additionally the CPU overhead generated by FTP connections also causes many sites to limit the number of users who can connect, which often results in 'busy sessions', something much rarer with HTTP (as HTTP servers typically have very high thresholds for the number of concurrent connections they will support). The overhead on a server of a user downloading a file over FTP is much greater than that of a user downloading the same file over HTTP.

    Although FTP is of course theoretically more reliable than HTTP, in practice, because of 'Server busy: Too many users' messages combined with the speed and reliability of modern connections (which in turn makes HTTP more reliable) mean the the reverse is often the case from a user perspective - which is what I think the poster is getting at.

    This may be partly due to poor FTP server configuration defaults and/or poor administration, but they cannot shoulder all the blame.

    The potential lack of reliability with HTTP is a very minor issue these days, and the extra overhead of integrity checking files in addition to relying on TCP is just not warranted for all but the largest of files.

    This doesn't make FTP completely redundant, but it does make it make it redundant when your files are small and your users are on fast, reliable connections (though the value of 'fast' varies in relation to the size of the file, even 33 kbps is 'fast' compared to the speed of connections that proliferated when the File Transfer Protocol was developed).

    1. Re:'Reliability' of HTTP vs. FTP by TilJ · · Score: 1

      I think you're confusing protocol with policy. An admin that only wants to support 10 simultaneous users on their FTP server (perhaps because that's a reasonable number for their equipment or bandwidth) isn't making a comment on the ability of the FTP protocol to support more.

      --
      "The purpose of argument is to change the nature of truth." -- Bene Gesserit Precept
    2. Re:'Reliability' of HTTP vs. FTP by autocracy · · Score: 1
      For the record, that is a naive, and possibly flat stupid comment. Limiting FTP connections is preventing an equivalent /.ing. Most FTP sites hold large amounts of files, or just plain large files. It's a way for the admin to keep things under control and guarantee the server doesn't fall apart as it would with HTTP. Just wait 'til you get an HTTP site that gets maxed on traffic - HTTP server too busy messages really suck... sometimes you don't even get the connection.

      The theory to it works like this: everybody should be able to download at a minimum of speed $X. Any slower and it's not very usable, or takes too long. We have $Y bandwidth. $Y / $X = number of connections. Add on a few connections for idle or slower sets, and there you have it. Wonder why they limit it...

      --
      SIG: HUP
    3. Re:'Reliability' of HTTP vs. FTP by @madeus · · Score: 1

      No I don't have the two confused (though this should be clear from my post), partly (but not entirely) I was explaining (or at least trying to) that - from a joe user perspective (i.e. the perspective of the poster who started this thread) why users - of all experience levels - often prefer downloading over HTTP.

      The basic idea being that if I am shown two download links on a site, which one do I click - the FTP or HTTP, well I would tend to opt for HTTP (unless my connection was poor or the download was very large).

      This is because it's rare you see an 'HTTP' busy message when downloading a file (if you can get to the web site that's not so likely!) where as FTP server too busy messages are not nearly so rare, in fact they can be annoyingly frequent.

      But that's just from a user perspective, and which is why many users learn to 'avoid' FTP links for downloads unless they have do (and some joe users don't even know really know why, they just learn from past experience from getting 'server too busy message' when clicking on FTP downloads so they stick with HTTP from then on.)

      Quite apart from that (though this is related to why you see so many 'Server Busy' messages) I stated the following:

      HTTP is faster than FTP as a transfer protocol. It generates less traffic (and uses less CPU overhead) which means downloads end quicker.

      Because of this you hit server limits (like bandwidth, on the number of open threads, the number of open file descriptors, cpu utilisation, etc.) much quicker when users are connecting via FTP as opposed to HTTP.

      This is because the very requirements of the FTP protocol are more demanding than the HTTP protocol (for a start, FTP requires twice the number of TCP connections as HTTP - unless you are using passive FTP).

      It means it's simply not possible to serve as many downloads via FTP as via HTTP on the same system.

  208. HTTP sends less bytes than FTP by bug1 · · Score: 1

    I did some tests a few moths ago, HTTP sends about 2% less bytes than FTP.

    Its because FTP sends data in bigger packets.

    Less packets means less TCP/IP overheads.

    1. Re:HTTP sends less bytes than FTP by GenetixSW · · Score: 1

      If that's the case, then bigger packets would equate to fewer packets and thus less overhead. Was that a typo?

      This actually could be quite interesting... Does FTP encode data much differently than HTML? I don't remember myself...

  209. Mod parent up. by Anonymous Coward · · Score: 0

    I think people should mod this up until someone from FreeBSD confirms if this is true or not.

  210. Who cares what others think? by Anonymous Coward · · Score: 1, Insightful

    HTTP is amateur and will make you look a wimp.
    FTP is a crumbling legacy protocol and will make you look a dinosaur.

    Why care so much what others think? Efficiency beats out looks any day.

  211. FTP by PetWolverine · · Score: 1

    Reading a lot of these posts, I find many, many people saying how difficult FTP is to get set up and working. It's really not that hard. My server (see .sig) took a total of a few hours to set up. The hard part was finding people to help me troubleshoot, since I couldn't very well do it from inside my network.

    I'm using Pure-FTPd, and I recommend it if you're using a platform it'll run on. To get through a firewall, just set it to know your external IP address (with -P), set it to use a particular range of ports for passive connections (with -p) and set your router to route those ports to the server. Easy.

    --
    I found the meaning of life the other day, but I had write-only access.
  212. Re:HTTP is fine (also quicker!) by @madeus · · Score: 1

    I agree with your post - though I'd add to that - in saying the less over head required by HTTP makes it even faster that FTP.

    (And also that HTTP traffic generates less serverload than FTP).

  213. Dan Bernstein's publicfile is the answer... by RobbieW · · Score: 2, Informative

    Dan J. Bernstein has written a fantastic, lightweight server that will serve files via either or both FTP and HTTP depending on how the client connects.

    If you want to serve files to the public, this is the most secure way to do so. If you need to provide the files to only certain logins, use something else. If not, you can run this on very lightweight hardware and if it's the only server running, you won't get hacked. Period.

  214. cvs? by laugau · · Score: 1

    If you want speed, but to not look like a dinosaur, use CVS... then when people can't connect, then treat them like they are idiots.

    But FTP is faster.

  215. Microsoft Internet Explorer by Cokelee · · Score: 1

    Has a poor implementation of FTP. FTP may wreck havoc on IE, crashing every window. Yes, my friend, the standard is long broken, but it was not broken on its own. Using a client FTP program like SmartFTP or any variant will yield amazingly better results than IE. Then again, you could just use Mozilla/KHTML/Opera (anything but IE) and have no trouble.

    The end user has these problems. That is why. It is the fault of a single monopolistic application--made by Microsoft, enough said.

  216. nostalgia for methods that didn't go mainstream by Tumbleweed · · Score: 1

    SAFT & rsyc - why aren't these implemented into browsers and NNTP clients? Freaking ridiculous that we have these excellent methods available (for YEARS - they both predate the web, in fact), but noone knows about them as they've not been mainstreamed into appropriate places. *sigh*

    And if you want to do a distributed thing, check out 'BitTorrent' - seems very interesting (though new and unproved).

    1. Re:nostalgia for methods that didn't go mainstream by johl · · Score: 1

      Don't forget FSP, the file service protocol. While rsync has its uses for many admins and SAFT is actually used by some people I know, I've yet to meet a person that has ever used fsp. Quite odd if there ever was a time that they frequently had to answer questions about it on usenet :)

  217. HTTP and FTP FUD by MobyDisk · · Score: 4, Insightful

    I see too many FUD replies here:

    1) HTTP doesn't support resumed downloading.
    - That's ridiculous. It has since HTTP/1.1 years ago. In fact, it can even do things like request bytes 70,000 - 80,000, then 90,763 - 96,450, etc.
    2) HTTP doesn't support security/authentication
    - Ridiculous. HTTP has an open-ended model for authentication and security, many of which are secure and standardized. If you REALLY need security, use HTTPS.
    3) HTTP doesn't support uploading
    - HTTP/1.1 has had this for a while. Netscape 4.7, Mozilla 1.1, and IE 4+ support this. I must admit though, it sucks. :-)

    Several people have pointed out the real differences:
    1) FTP doesn't like firewalls
    - Passive FTP fixes this, but it has quirks and limitations.
    2) FTP supports directory listing, renaming, uploading, changing of permissions, etc.
    - This is what FTP is for
    - This can be done in HTTP, but requires serious work
    - If the scope creeps, shell access would be better.

  218. Need more info by acidrain69 · · Score: 1

    What is the nature of your audience? Are they going to grab one file at a time, or pick a bunch of files? HTTP is better for quick grabbing one thing. FTP is nice if you want to see a list of things and queue them up. Yeah, you CAN queue stuff with those crappy HTTP managers, but I haven't come across one I like yet.

    What is your primary audiences connection? FTP is easier to resume from. HTTP requires more shitty download spamming managers. (or wget, but lets be realistic here) If most of the users might be on broadband, then who cares if the HTTP connection drops and they have to reget the file? But if they are dialup, then having to redownload sucks.

    For relatively small files, when authentication isn't an issue, go with HTTP.

    I personally would do both, just because FTP gives you so much more control.

    --
    -- Having a Creationist Museum is like having an Atheist place of worship
  219. A real BOFH by Lord+Sauron · · Score: 2, Funny

    Would use sftp in a SSH tunnel over IPv6 encapsulated in IPv4 over X-25. Don't forget to encrypt, obviosuly with an unknown russian algorithm, not only the files but also the instructions on how to download'em. If you have some spare time, instead of sftp you can develop your own [undocumented] protocol.

    This way you won't look like a wimp. Jaws will drop, you'll be recognized as a uber BOFH and your peers will respect you.

    1. Re:A real BOFH by Anonymous Coward · · Score: 0

      Why develop your own undocumented protocol? Just use anything from Micro$oft.

  220. Misconceptions and Idiocy by deblau · · Score: 1
    [rant]
    I've seen a lot of posts saying "use HTTP because you don't have problems with firewalls". This attitude pisses me off. If you don't want firewalls to interfere with your traffic, then dyke them out of your network. If you can't, then you're probably at work and shouldn't be sharing files over the open 'net anyway. Understand that firewalls are there to protect you, and that for each time you curse them, 1000 hackers are denied access to your kiddie pr0n and stolen credit card numbers. Also understand that port 21 is blocked for a reason, and port 80 should be too except for direct connections to your web site. If you're on an ISP that blocks port 80, and you still want to share your ripped MP3s, get a business account. Don't whine about how life is unfair.

    On a related note, a big "what the fuck are you thinking" goes out to people who design/run non-HTTP services over port 80, or even port 443 (you know who you are). Did you people bother to read the OSI layer 4 spec? If all your services are going to run over port 80 to avoid firewalls, why the hell bother with port numbers in the first place? Build your own protocol, fine, but release an RFC and get your own assigned port number for it for fuck's sake. That's their entire purpose in life, after all.
    [/rant]

    --
    This post expresses my opinion, not that of my employer. And yes, IAAL.
  221. Shameless plug ... by Anonymous Coward · · Score: 0
  222. FTP through HTTP by Psx29 · · Score: 2, Insightful

    I am not sure if there is really a purpose to this and am just throwing ideas around. But you could host an FTP on an internal network and route it through an HTTP CGI script. You can also use encryption over the HTTP connection to make it secure without resorting to SFTP. I just happen to use this method myself since SFTP requires special clients and is a bitch to setup...just some food for thought

  223. Try scp. Its part of ssh. by molo · · Score: 2, Informative

    scp is your friend. Learn how to use it, and it will handle all of your (non-anonymous) file transfers. It is a beautiful thing.

    --
    Using your sig line to advertise for friends is lame.
  224. Personally, by punkfoo · · Score: 1

    ...I prefer CPIP rather than cumbersome TCP/IP applications like HTTP or FTP. If it was good enough for Noah, then it's good enough for me.

    --
    this sig is a highly rehearsed improvisation
  225. FSP? by carpe_noctem · · Score: 1

    Ok, I've seen several posts now regarding the seemingly-dead FSP protocol, which I'd never heard of until today. Someone care to explain this?

    --
    "Quoting famous computer scientists out of context is the root of all evil (or at least most of it) in programming." - K
  226. Protocols... by Sam+Nitzberg · · Score: 1

    cpio

  227. Two Words by Dolemite_the_Wiz · · Score: 0

    Secure FTP

    Dolemite

    --
    Save the World! Use a Quote!
  228. Single vendor lock-in by yerricde · · Score: 1

    The problem with uploading to Gnutella1 [compared to Gnutella2] is that the other people downloading the file have a harder time getting it

    Then how does one distribute programs designed for platforms other than Microsoft Windows using the Gnutella2 protocol, which (last time I checked) only Windows-platform Gnutella clients support, and which Windows users are unlikely to download and share?

    --
    Will I retire or break 10K?
    1. Re:Single vendor lock-in by Anenga · · Score: 1

      There are already some Linux Gnutella2 clients in development. However, the specs have yet to be released... though they will be out soon AFAIK.

      BTW, Shareaza works on WINE - though, I doubt that's the response you were hoping for =)

  229. hxd by Anonymous Coward · · Score: 0

    Use the hotline-compatible hxd. Supports resume and a bunch of other stuff. Like a bbs.

  230. Looking for the Third Way... by Anonymous Coward · · Score: 0

    Just use IPv6. By tacking on a "sixxs.org" on the end of the URL, you will achieve technological elite status. The best part is that since most people aren't on that backbone, we can't verify if you're telling the truth or not.

  231. Use them both! On the same port! by vgaphil · · Score: 1

    You can run a HTTP and FTP on the same port using an app called JavaSwitch. Doing this can actually make FTP a little more secure.



    Let's say you use JavaSwitch and have it accepting HTTP and FTP traffic. You can set JavaSwitch up to run on port 80 (the "standard" port for webservers). Now when someone scans your ports all they will see is port 80 open and assume that all you are running is a webserver when in fact you are running a webserver and a ftp server. This still doesn't help the fact that FTP is a clear-text protocol and shouldn't be used anyway. Stick with SSH.



    You can get JavaSwitch here.


    --
    A clever person solves a problem. A wise person avoids it. -- Einstein
  232. use bittorrent by Lelon · · Score: 1

    If you're anticipating a large number of downloads, especially in a short period of time, you should really use Bittorrent, although it might not be necesary with such small files, but you'd save money on bandwidth.

  233. FTP The Easy Way by l0gic_f0x · · Score: 3, Informative

    I run a ftp for similar file-sizes (1-6 meg) using a Windows 2000 Pro box (yeah i know i should stick to my preachings about the wonders of linux but im not 100% with my abilities to lock down linux yet) and im using Bulletproof FTP server which is hella cheap but has every feature you can need and is very secure. I highly recommend it. It handles beautifully.

    --


    "Self-destruction might be the answer" --Tyler Durden
  234. Most Secure FTPD: VSFTPD by yanfali · · Score: 1

    VSFTPD is the best ftp server out there today, ok maybe Tux 2.0 is as good. VSFTPD has never been broken into and RedHat, and a number of other high profile FTP sites use it on their distribution servers. It's also damned fast. Homepage

  235. Re:Use them both! On the same port! by belg4mit · · Score: 1

    Right, because HTTP *isn't* plain text

    --
    Were that I say, pancakes?
  236. What rsync needs is a port assignment for SSL/TLS by Skapare · · Score: 1

    What rsync needs is a port assignment (in addition to its existing 873 for clear connections) for SSL/TLS. Alternatively a "STARTTLS" feature added to the rsync protocol could do the same job. What this gets us is the ability to create a secure SSL service where passwords and data are reasonably confidential, while not having to worry about adding users to the host system itself (which is required for either rsync over ssh, or for scp as an alternative) which exposes a risk of accidentally making them shell users (not everyone wants to do that).

    --
    now we need to go OSS in diesel cars
  237. HTTP is way nicer than FTP! by Anonymous Coward · · Score: 0

    To prove it, I built this:

    http://www.jonandnic.com/explorer2.99/?path=http :/ /www.jonandnic.com/pictures&dir=d:/pictures&name=p ictures&thumbs=1

  238. anonymous sftp... by Luke-Jr · · Score: 1

    I happen to have anonymous access via SFTP. I also allow anonymous SSH too. It pretty much consists of making an 'anonymous' user w/o a password... BTW, if there is a way to find my IP address from /., please don't try it. I don't have the bw to take a /.ing...

    --
    Luke-Jr
  239. Re: Passive FTP (formatted) by Skapare · · Score: 1
    FTP is hell for firewalls...

    Try running the FTP server behind one firewall with NAT while the client is behind its own firewall with NAT, and both machines have the same private address. Really confusing at best.

    --
    now we need to go OSS in diesel cars
  240. Re: sftp by araemo · · Score: 2, Informative

    sftp incurs a terrible CPU overhead, especially if many people are going to be downloading at once. I doubt most web servers could concurrently handle a few dozen 3des encrypted sftp connections without slowing throughput, and if you're hosting files, thats the last thing you want. FTP is supposedly more bandwidth-efficient (though I've never seen proof), but I can still get 400k/sec downstream over http, so I don't think it's a huge problem. I'd just use http for the ease of setup. Securing a public-access ftpd is a true pain.

  241. email is better then both http and ftp by Anonymous Coward · · Score: 0

    You don't have to sit there waiting and waiting
    for that 500 megabyte ISO image to transfer.

  242. Re:Use them both! On the same port! by vgaphil · · Score: 1

    HTTP isn't clear text?

    This is a request from a web browser.

    GET / HTTP/1.1
    Host: 127.0.0.1:16
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2b) Gecko/20020923 Phoenix/0.1
    Accept: text/xml,application/xml,application/xhtml+xml,tex t/html;q=0.9,text/plain;q=0.8,video/x-mng,image/pn g,image/jpeg,image/gif;q=0.2,text/css,*/*;q=0.1
    A ccept-Language: en-us, en;q=0.50
    Accept-Encoding: gzip, deflate, compress;q=0.9
    Accept-Charset: ISO-8859-1, utf-8;q=0.66, *;q=0.66
    Keep-Alive: 300
    Connection: keep-alive

    Seems plain enough to me.

    --
    A clever person solves a problem. A wise person avoids it. -- Einstein
  243. 1-6MB files to how many users? by digital+photo · · Score: 3, Interesting

    Hmm.. There's no reason why you couldn't just perform the download via HTTP if your target customer or audience has the bandwidth.

    If you're concerned about the customer losing connectivity, you could always just break the file up into small chunks for download.

    Both FTP and HTTP, depending on clients and servers, supports continuation-downloading(ie, recovering from where you left off.) So if one connection flakes out, you can always recover.

    The long and short of it?

    HTTP(S) or FTP(s/FTP), it doesn't matter. With both, you can restrict access and/or grant access to specific files. You can recover from some point or offer split files. With HTTP, you can have the information piped through a back-end piece of code so that you can monitor who does what when, but something similar can be done with FTP as well.

    If you've already got a webserver going and secured, you're probably better off offering the files via HTTP. Nothing unprofessional about it.

    Fact is, if your target audience is the general public, you'll fare better with HTTP. Why? Because while most people who are online will probably have access to a web browser and know how to download HTTP files, they may not have an FTP client or necessarily know how to use their browser as an FTP client.

    Me? I offer photos and docs online via HTTP. It's easier and I can control the visual aspect of the "download area" to create a more professional look than that of the "industrial" FTP interface.

    Nothing wrong with FTP or sFTP. I use them at work and at home. But then again, when I find a site which offers HTTP or FTP? I pick HTTP to download first. It's only when I'm still looking for something that I go with FTP... which, by the way, becomes difficult to navigate on some clients. A nicely generated webpage featuring the item via HTTP would be much more elegant.

    Just my two cents.

    1. Re:1-6MB files to how many users? by GenetixSW · · Score: 1

      I agree with you. The differences are negligible to the average user. I can only think of one thing that might sway his choice: Does he want to ensure a minimum download speed for his users or does he want to provide for as many users as possible? If the latter is his preference, then again it doesn't matter, but if he wishes to partition his bandwidth to a limited number of users then perhaps anonymous FTP could be the solution.

      Kind of like how a lot of Linux distribution sites/mirrors don't allow you to download from a maxed-out server--those who were lucky enough to get connected often get great speeds, while others have to wait in line. It's a pretty good system in some cases, I must say.

  244. Parent: +5 Funny by Anonymous Coward · · Score: 0

    while FTP firewalling will give you prematurely grey hair (and if it doesn't, then you're not doing it right).

    Ahahahahahahahhahahh... now that was FUNNY. Very true!

  245. from a luser perspective by RestiffBard · · Score: 1

    personally I like http downloads over ftp. I'm on dialup. I like to know how long its going to take to download a file. I don't get that info with ftp. as for http being slow? never noticed. but I would if I couldn't tell how long it was taking.

    --
    - /* dead coders leave no comments */
  246. Know your audience. by djtrippin · · Score: 1

    Most of the time, if you're offering files for download, a great portion of your user base will be at the college student level, and most universities bottleneck your ability to download via ftp thorugh standard ports, limiting your ftp download speed. I live in a dorm and because of the bottlenecked ftp I have to download via ftp to get it done reasonably, which is sad, because I have to download my linux iso's via http as well. Something to keep in mind if your user base will be student centric.

    --
    Choose wisely you must...
  247. Eight words to consider by dacarr · · Score: 2, Insightful

    If it ain't broke, don't fix it.

    --
    This sig no verb.
    1. Re:Eight words to consider by dacarr · · Score: 1

      OK, seven words.

      --
      This sig no verb.
  248. Re:Use them both! On the same port! by cant_get_a_good_nick · · Score: 1

    He's talking authentication schemes, and HTTP has many more options. HTTP Digest authentication allows non-cleatext passwords. There is no such option with FTP, all passwords are cleartext.

    And though it's technically HTTPS not HTTP, at least there is a common implementation of HTTP over SSL out there. Everything encrypted, and you can even skip passwords entiredly and do authentication using certificates if you want to go through the trouble. FTP over SSL isn't all that common.

  249. FTP rulez...but needs help; HTTP too. by MoFoQ · · Score: 2, Informative

    Well there's always the option of FTP over SSH2. I'm sure you can find a Java applet that will do the SSH2 and make the tunnel needed for secure FTP.

    Now when we talk about Java, there's another possibility. Some sites (cr@ck) use a Java downloader. It doesn't mean that the Java applet that downloads the file uses HTTP or FTP, it can be some sort of propriety protocol (or you can combine the best of both worlds.)
    One way is to have the applet on a SSL'ed (https) page and it does some decrypting as it downloads a pre-encrypted file from your FTP. Or the person can just download the encrypted file directly and use the applet on the secured page to decrypt it. There's ALWAYS a way to have your cake and eat it all by yourself, too.

  250. Who's your audience? by Jakyll · · Score: 1

    If its tech folk, ftp would be perferable... if it's non-tech folk, http makes things easier for them.... But this is from a guy who misses gopher, so take it for what its worth

  251. Apply these three questions... by almaw · · Score: 5, Informative
    You should use FTP if you answer yes to any of the following questions:
    1. Do you have bandwidth issues? If you are serving files to many people, FTP servers allow maximum concurrent users, which can be useful. I know you can do this with HTTP, but it's difficult to segment the downloading >1Mb files traffic from the normal site traffic. A separate service also allows you to use all the Quality of Service stuff in the 2.4 kernel nicely.
    2. Do you have a large array of files that the user might want to download, such that using an FTP client to ctrl+select multiple files is the right answer compared to having your users click on twenty links and have to cope with twenty dialog boxes?
    3. Do your users need to be able to upload files to you? This can be done with HTTP, but you'll need some PHP processing or similar on the server, it doesn't support resuming, and it won't work through many company firewalls, and therefore isn't a good option. HTTP uploading it particularly hopeless for large files, as it provides no user-feedback.
    However, you should NOT use FTP if you answer no to either of these:
    1. Are you running some flavour of unix? There just aren't any robust Windows FTP servers. Yes, I'm prepared for the flame war about this. :)
    2. Can you be bothered to keep your FTPd patched? ProFTPd and WU-FTPd are both frequent appearers on bugtraq. You need to stay on top of the patches, or you will be 0wn3d.
    Simple, see? :)
    1. Re:Apply these three questions... by adamsc · · Score: 1

      You're correct except for point 1. All of the major HTTP servers allow you to limit simultaneous connections or (better) bandwidth.

    2. Re:Apply these three questions... by solidox · · Score: 1

      glftpd :) it's a bastard to setup, but once it's going it's more robust and flexible than any of the windows ones i've seen.

      --
  252. My experience by Anonymous Coward · · Score: 0

    I work for an organization that performs hosting for a website that hosts both large and small files (avg 1-5 MB, max ~200MB). We support download via HTTP and FTP both. As a general rule, the website directs users toward using HTTP to download files, and by far (about 10 or 20 to 1) we see users grabbing files via HTTP.

    A note however. If users want to download large numbers of small(ish) files, and you don't care about authentication, FTP becomes the far more preferable option for our users. The command set for FTP just makes it quite a bit easier to use wildcards to specify a large number of files.

    Of course, if security is important, go for HTTPS or SFTP. Just remember that Joe Windows never heard of SFTP.

    As always YMMV.

  253. HTTP is better (IMHO) by Megane · · Score: 2, Insightful
    First of all, FTP is a crazy klunky protocol, and a bitch to firewall properly too. It's also one of the oldest protocols, even pre-dating TCP/IP. And then there are all the fun root exploit bugs that have been in various FTP servers.

    In my case, I run an Apache server on my file server box because it gives me full 100% throughput at Ethernet speeds. That's 10+ megaBYTES/sec. The average anime episode downloads in 10-15 seconds, and when friends come over, I don't have to worry about them having the right kind of client when they want to leech.

    Where FTP becomes useful is when you want people to upload to you.

    --
    #naabhaprzrag, #sverubfr-000, #agi-fcbafberq, negvpyr[pynff*=' negvpyr-ary-'] { qvfcynl: abar !vzcbegnag; }
  254. He doesn't need authentication, it's public by leonbrooks · · Score: 1

    And an FTP or HTTP server (running chrooted, just in case, and owning none of its own files) in user-mode (after the connect) and with the authentication and other fruit stripped out is dead easy to make effectively unbreakable.

    It wouldn't be hard to fake up an encryptionless scp server either, and don't forget Gopher!

    --
    Got time? Spend some of it coding or testing
    1. Re:He doesn't need authentication, it's public by neuroticia · · Score: 1

      Good point--if no authentication is needed, then it can be pretty secure running chrooted (Although chroots are not that difficult to break.) If he did it under BSD and jailed it, it would probably be safer.

      -Sara

    2. Re:He doesn't need authentication, it's public by grolim13 · · Score: 1
      Chroots are impossible to break if they don't run as root. The only way to break out of a chroot() is to do something like chroot("/../../../"); the chroot system call is only available to root for security reasons.

      I don't believe that standard UNIX/Linux systems come with a program that provides shell-level access to running a chrooted program as a non-priviledged user; I wrote a little C program a while ago that does this - chroot-setuid.c

      CP.

    3. Re:He doesn't need authentication, it's public by dotgain · · Score: 0

      The only way to break out of a chroot() is to do something like chroot("/../../../"); the chroot system call is only available to root for security reasons.
      Ugh, can it? I would think after you chroot somewhere, that you can't get back because where you chrooted to is now your root directory.
      Surely there's no use in being able to chroot back (if you need, you'd have forked off the process you want to chroot, not the one that's going to need the whole filesystem).
      I recall some systems where you can't come back from a setuid(), and I think chroot should behave similarly. If 'root' asks for chroot("../../../") something must be going amiss.

    4. Re:He doesn't need authentication, it's public by You're+All+Wrong · · Score: 1

      You can break out using /proc/ so you don't want a /proc/ filesystem accessible to a chrooted program. That means that you can't use any program that relies on /proc/. That's not a big hindrance most of the time.

      YAW.

      --
      Your head of state is a corrupt weasel, I hope you're happy.
  255. What you have to do... by buck_wild · · Score: 0, Offtopic

    ...is get yourself some better pr0n! Jesus man, those better be picture files and not movies!

    --
    If all you have is a hammer, everything looks like a nail.
  256. EVIL FTP PROTOCOL FROM HELL MUST DIE! by Anonymous Coward · · Score: 1, Interesting

    Any serious network security professional who's not just faking it considers the FTP protocol an *evil* *abomination*. This protocol MUST DIE! Someone please publish an RFC that "officially" deprecates it.

    Note I'm talking *protocol*, not any particular client or server implementation. The protocol is fundamentally flawed.

  257. FTP and You by deadDox · · Score: 1

    Well im afrade that you have to realise that linux isn ot he only os about. Windows has had resuming of both ftp and HTTP download for years now with programs like GETRIGHT and Flash GET. So resuming is not an issue for 80% of the Internet population. HTTP is userly faster then ftp and has no problem with firewalls. Dont limit your views to *nix based systems or you become as bast as windows users. Yes i know there is bad grammer, spelling and what not in this reply im dislexic and proud --- Andy---

    1. Re:FTP and You by deadDox · · Score: 1

      And on a farthere note HTTP can have multipulstreams so files can be downloaded faster FTP has limits in conccurent connections ect it just cant be done, Dislexic and proud ---Andy---

  258. HTTP by Unregistered · · Score: 1

    I prefer downloading via HTTP. It's usually faster for moderate sized files. I run both an HTTP and FTP server, but i rarely use the FTP server for anything but uploads. HTTP's just easier to deal with.

  259. Who's the user? by Arandir · · Score: 2, Funny

    Who's the user? If it's WIndows lusers, then by all means use http. It makes their life easier. But if the users are *NIX, Mac or other, then use ftp. These folks have a clue and can deal with it.

    Warning! The above is sarcasm. But it is so apropos. Paraphrased quote from a conversation I had with a Windows luser:

    "I need to find a good FTP program so I can download this software I found. Which do you think is better, ProFTP2K for $25, or should I spend more for EZDownloadFTPPlus at $50?"

    --
    A Government Is a Body of People, Usually Notably Ungoverned
  260. SSH, SFTP, SCP... by BoomerSooner · · Score: 1

    All I use is secure FTP. Seems fine to me and no DUNS number necessary.

    As far as ease of use:
    1) Get a better computer
    2) Get Fugu
    3) Get a clue. End-Users aren't that difficult, you just need to be able to communicate.

    1. Re:SSH, SFTP, SCP... by neuroticia · · Score: 1

      1.) Whether or not a Mac is a "better computer" is EXTREMELY open to debate. Almost as open as statement number three. (That one depends on the end user. Some end users are wonderful, others can't figure out how to copy and paste, let alone install a program.)

      2- Fugu does look quite nice, but programs with that functionality is hardly limited to OS X, which brings me back to your first point... If you want someone to listen to you, to take your comments seriously, and to take the platform seriously, don't argue with bullshit, foggy, arbitrary things. It makes you just as bad as the idiots out there who are using *ADOBE PRODUCTS* as an argument for-Mac anti-windows.

      3.) I love the Mac quite dearly, but it's going through tough times right now, and everyone who blindly evangelizes it makes me want to puke.

      ::posts and prepares to be modded flamebait. But sometimes I just don't give a damn::

      -Sara

    2. Re:SSH, SFTP, SCP... by Golias · · Score: 1
      I love the Mac quite dearly, but it's going through tough times right now

      Actually, Apple is expected to post a profit this quarter, and have weathered the NASDAQ crash a lot better than certain other computer companies I could name.

      *cough*Compaq*cough*

      --

      Information wants to be anthropomorphized.

    3. Re:SSH, SFTP, SCP... by neuroticia · · Score: 1

      Actually, I wasn't talking about finances. I was talking about usability. I have no doubt Apple is showing a profit, how could they not? They're selling pretty plastic things to the masses.

      -Sara

    4. Re:SSH, SFTP, SCP... by jericho4.0 · · Score: 1
      Excuse me? Apple is going through a hard time right now in usability?

      Are you by chance coming over from OS 9? I could somewhat understand your statement then, but as someone who uses 4 operating systems daily, the Mac strikes me as extremly useable.

      OS 9, OTOH, caused me much grief.

      --
      "A language that doesn't affect the way you think about programming, is not worth knowing" - Alan Perlis
    5. Re:SSH, SFTP, SCP... by neuroticia · · Score: 1

      I liked OSes 8 and 9 despite their tendency towards crashing.

      OS X, in my opinion breaks every "usability" paradigm, often to the point of causing the end-user grief.

      For the record, I'm a multi-OS user as well. I use Win98, Win2k, WinXP, Redhat Linux, Debian Linux, and OpenBSD on a regular basis, and with a variety of window managers ranging from low-resource gobber XFCE to OSX's resource intensive Aqua.

      That said, I LOVE OS X's Unix back-end and newfound stability, however Aqua is the most beautiful and least functional GUI that I've ever used (for an operating system, at least). It does not respond promptly, it eats more system resources, and it does not follow a consistent "paradigm" either by retaining consistency with existing GUIs, or by retaining consistency within itself.

      My primary complaints being:
      1- Drop shadows replacing window borders. I cannot grab and resize a window from an edge. I cannot comfortably use programs with multiple windows (think Electric Image Universe) because the shadows overlap the other windows. If I shut them off, I'm left with windows that do not have borders, and that blend into windows behind them. Neither one is livable.

      2- Transparency. In some cases it's nice, in some cases it renders things unreadable. once agian, it's an "all or none" thing.

      3- Placement of drives as they are mounted. It's haphazard. Sometimes my CD-ROM will come up in the expected place, sometimes it will come up in the middle of the screen, sometimes it will come up behind another icon. The same with network icons. I have to minimize every window I have open in order to find where the drive has been mounted.

      4- Placement of icons within folders. The default view is "icon view", and when I open a folder for the first time in "icon view", the icons are often overlapping.

      5- Application menu. It contains things that have NOTHING to do with the application, and that I don't want to even SEE on the application menu.

      6- Dock. It doesn't contain text descriptions of what the hell it is that's on the dock. To find something I have to mouse-over. I have multiple applications with similar icons, and have to mouse-over to find the windows for these applications. It's mystery meat navigation, and a poor implementation of it because THE ICONS CHANGE POSITION TOO! Yes, that's right- if I have my icons nicely placed, then open an application it will show up on the Dock and move all the other icons around. Alltogether this adds up to requiring me to keep the dock 3-4 times larger than I'd like to have it, and to mouse-over every time I need to find something. Also, because the dock has to be so large in order for me to reap its functionality, I have to have it auto-hide, which means that the bottom part of my screen is unusable, because if I go down there, the dock pops up again.

      7- Quartz. It offloads to my video card which increases system performance but makes my video card perform like shit until I've de-aquified OS X.

      If just those complaints were taken care of, I'd consider OS X to be fairly usable. I'm even willing to let certain annoyances go--like the presence of the trash can on the dock. (I prefer mine on the desktop, but understand the rationale for having it located on the dock instead), OS X's over-use of the color white (eye burn)--it's pretty, and I can just down the contrast and brightness on my monitor until it's gray, anyway. i'm not a graphics person. Stripes. Don't like them, never will, but it's an aesthetics thing, I'm not going to nitpick too much about aesthetics... Honestly, my list of complaints is 10 miles long, but those 7 are the only "deal killers" for me. If Apple were to provide reasonable settings for these, or an "OS 9 skin", then I'd LOVE to be on my G3 24/7. I LOVE the idea of using Photoshop and hopping out to the command line for a few minutes to take care of some business. It's just the GUI that I hate, and I hate it all the more because Apple has always had a wonderful easy to use GUI. Aqua un-does all of that.

      -Sara

    6. Re:SSH, SFTP, SCP... by Golias · · Score: 1
      Okay, first of all, none of this represents "hard times" for Apple. It just represents "hard times" for you while using OS X. Don't try to weasel out of what you said originally. Apple has not fallen on hard times. You flat-out mispoke, admit it.

      As for the other points you made about OS X...

      My primary complaints being:
      1- Drop shadows replacing window borders. I cannot grab and resize a window from an edge. I cannot comfortably use programs with multiple windows (think Electric Image Universe) because the shadows overlap the other windows. If I shut them off, I'm left with windows that do not have borders, and that blend into windows behind them. Neither one is livable.

      The drop-shadows in OS X are damn near invisibile. Unless you are really badly mis-setting the brightness and contrast on your monitors, I just don't see how the shadows could be causing you this much trouble. Maybe you should get your vision checked. Seriously. As for switching windows, learn to use the dock properly. Any open file can be selected from the dock, under a menu for the application which opened it. You no longer even need to see a window to open it.

      2- Transparency. In some cases it's nice, in some cases it renders things unreadable. once agian, it's an "all or none" thing.

      Could you be more specific? I've rarely run into transparancy causing problems, but I have on occation I have, especially in earlier incarnations of OS X. As you said, it is often very nice to have. (Are you one of those people who turns their Terminal sessions transparent? If so, you can hardly blame Apple for your troubles, as they do not even have terminal window transparancy as a GUI option, let alone as the default.)

      3- Placement of drives as they are mounted. It's haphazard. Sometimes my CD-ROM will come up in the expected place, sometimes it will come up in the middle of the screen, sometimes it will come up behind another icon. The same with network icons. I have to minimize every window I have open in order to find where the drive has been mounted.

      See that smiling Apple logo on the right hand of your dock? Click on that, then click on "computer." That's where your drive is mounted. The icon on your desktop is just a shortcut.

      4- Placement of icons within folders. The default view is "icon view", and when I open a folder for the first time in "icon view", the icons are often overlapping.

      I've seen that happen once in a while, too. Good thing there's a "Clean Up" option in the "View" menu which always fixes it. This seems like a pretty minor nit-pick to me.

      5- Application menu. It contains things that have NOTHING to do with the application, and that I don't want to even SEE on the application menu.

      Are you, by any chance, refering to the "services" sub-menu? I find that to be extremely handy, and I think the Application menu is the perfect place for it. And, I should point out, very consistant.

      6- Dock. It doesn't contain text descriptions of what the hell it is that's on the dock. To find something I have to mouse-over. I have multiple applications with similar icons, and have to mouse-over to find the windows for these applications. It's mystery meat navigation, and a poor implementation of it because THE ICONS CHANGE POSITION TOO! Yes, that's right- if I have my icons nicely placed, then open an application it will show up on the Dock and move all the other icons around. Alltogether this adds up to requiring me to keep the dock 3-4 times larger than I'd like to have it, and to mouse-over every time I need to find something. Also, because the dock has to be so large in order for me to reap its functionality, I have to have it auto-hide, which means that the bottom part of my screen is unusable, because if I go down there, the dock pops up again.

      Once again, I find myself wondering if you should invest in trifocals. Get thee to the optomitrist! I have my Dock reduced to an insanely small size on my tiny iBook screen, and I've never had a problem telling one icon from another. Also, while the Dock items do slide over a little when another item is added, they stay in the same order, so if iTunes is the 5th icon from the left on your dock, it still will be the 5th icon from the left after you minimize another window into the dock.

      7- Quartz. It offloads to my video card which increases system performance but makes my video card perform like shit until I've de-aquified OS X.

      "De-aquified"? I suspect I'm starting to see where your trouble is coming from. Thousands of Mac users have great experineces with OS X out of the box, but rather than un-learn some bad habits you picked up from the OS 7 & 8 days, you've chosen to tweak the shit out of the GUI... Changing the graphics settings, auto-hiding the dock, playing with the monitor brightness because you find the GUI uses "too much white", etc. It would appear that you've created most of the usability problems yourself.

      You claim at the beginning of your post that OS X fails to follow a paradigm consistantly. That's incorrect. It follows a very consistant paradigm, but it's a different paradigm that OS 9. The sooner you get past that concept, the sooner you will realize that the new GUI has some real advantages. When using System 7 and MacOS 8, I found myself storing more and more things on the desktop, because it was the easiest way to keep track of them. Now, the more I use OS X, the more I realize that the desktop is really just there to help old Mac users make the transistion. At the moment, my desktop is completely empty, save for the browser window I'm writing this post in, and the dock. I have other tasks I'm doing, but I don't need to have a lot of desktop clutter to multitask effectively anymore, and I think it's great.

      --

      Information wants to be anthropomorphized.

    7. Re:SSH, SFTP, SCP... by neuroticia · · Score: 1

      1- A company that creates a lousy GUI is going through "hard times" with usability. Apple's GUI is a piece of crap.

      Consistency. I illustrated this by the random placement of drives (or shortcuts, as you call them) wherever they might land. Also when dragging a file into a folder, it gets placed at random, and often BEHIND another bloody icon. Yes, "clean up" fixes this, but it shouldn't happen to begin with. The default should be to *be* cleaned up, and allow customization on a folder-to-folder basis if need be.

      My eyes are fine. However I frequently have 20+ applications open, and don't like having to sort through 20+ tiny-assed icons on the bottom of my screen doing mouse-overs for icons that are exactly the same (some of my programs use the same icons) before I can figure out where it's gone. I also prefer not to have to look for icons at all. I'm in front of a computer for 12-20 hours a day, looking for icons is a piss-poor way to work, and results in headaches and eye stress.

      As for drop shadows and transparency--I didn't say they always caused problems. I said when a program uses multiple windows, the transparency becomes annoying. ie: Eith Electric Image's elevation views, the windows start to overlap eachother because of the drop-shadows. I'd also prefer not to have them. My primary issue was that without them, the GUI can no longer be navigated comfortably. As for transparency, when the menus drop down over something, if there's text behind the area that's dropped down, sometimes the text gets muddled or hard to see.

      I have not created my own usability problems. I make it a point to use a new OS AS-IS for the first 2 weeks or so of using it. After which I make any changes necessary to make life comfortable for me. Don't talk down to me like I'm a moron, I understand the "dangers" of customizing something before you fully understand it.

      My complaint is this: Windows, Mac OS 9, Linux, and a variety of other OSes have GUIs that the end-user can use painlessly for a large number of hours a day. OS X has taken this and trashed it. I can't work on my Mac for more than a couple of hours without getting a headache. And quit blaming my "poor eyesight". It's a pussy's way out of things. "Oh, it doesn't work, you must be broken". A LOT of people have issues with OS X, we can't all have shitty eyes. I never heard this many complaints about the old Mac GUIs. And don't say it's just because it's a "departure from the norm", either. If you're 100% satisfied with OS X, you're mentally defective, easy to please, or you're at the command line more than 90% of the time. Or.. you're lying. No one is 100% satisfied with anything.

      -Sara

    8. Re:SSH, SFTP, SCP... by Golias · · Score: 1
      If you're 100% satisfied with OS X, you're mentally defective, easy to please, or you're at the command line more than 90% of the time. Or.. you're lying. No one is 100% satisfied with anything.

      I didn't say I was 100% satisfied. I would like to see even tighter X11 integration. I think the Dock would be even more usefull if I could have more of a "multiple dock" solution, so I could switch between several dock configurations based on whether I was working with media tools, office tools, *nix administration apps, etc. Like you, I have a crapload of apps which I like to keep docked, and I'm getting to the point where I would like it to help me organize them a little more than what order I line them up in.

      Having said all that, I've never had the eyestrain issues you are talking about (even on my puny iBook monitor), and have yet to hear such complaints from the many people I know who also use OS X.

      While there are still a few minor kinks to shake out, I consider OS X to be the best GUI out there, bar none. Yes, even better than the "old-skool" MacOS desktop, far better than all the Linix evnironments out there based on XFree86, and certainly vastly superior to anything that has ever come out of Redmond. WindowsME was about the worst GUI mess I had ever seen, until XP came out. No, I am not easy to please, I am very demanding, and OS X has come closer to meeting my demands for a user interface than any other operating system.

      --

      Information wants to be anthropomorphized.

  261. Fish Konquers all? by leonbrooks · · Score: 1
    SCP also has never been implemented in a browser for file transfers.

    Yeah? Go fish! Does require version 3.1 though.

    --
    Got time? Spend some of it coding or testing
    1. Re:Fish Konquers all? by Anonymous Coward · · Score: 0

      Konqueror has supported scp/sftp (it's the same thing really isn't it (sftp is just a front-end for scp)?) for quite some time (can't remember how long, but it predates fish).

  262. I'm dealing with this decision now too by osgeek · · Score: 3, Interesting

    After hosting an HTTP file transfer area for some time for my company, we decided to move to an FTP setup that was a bit more sophisticated.

    So far, it's been a failure for two reasons:

    1. IE blows as an FTP client, and users aren't comfortable dropping into the (somewhat crappy) DOS FTP client.
    2. Firewall setups at the fortune 500 companies that we deal with normally seem to keep FTP access off-site restricted.

    1. Re:I'm dealing with this decision now too by sean23007 · · Score: 1

      If you want to give your users a good ftp client, may I recommend FileZilla? It is a full featured open source ftp client (I think they also offer a server, but I've never used it) that runs very quickly and is very intuitive to use. The download is small and the installation is easy.

      --

      Lack of eloquence does not denote lack of intelligence, though they often coincide.
  263. Consider WeebleFM by Anonymous Coward · · Score: 2, Informative

    I just set up WeebleFM http://sourceforge.net/projects/weeblefm/
    It's a PHP front end to FTP. My FTP ports are only open to the loopback interface. Users get the usablity of a clean web interface, and I get to have encrypted password-controlled FTP on a box that only has port 80 open to the internet.

    WeebleFM uses mcrypt to encrypt traffic (and I'm pretty sure I could get it to work over https).

    Using standard unix permissions, a careful directory schem, and vsftpd's chroot capabilities, I can have an internet filesharing arrangement with blind drop boxes, a group accessible directory and any number of world readable directories.

  264. Transparent HTTP Proxies ... by Anonymous Coward · · Score: 1, Insightful

    Some ISP's (and companies if the user is behind a corporate firewall) provide transparent caching proxies for HTTP transfers, saving you the cost of actually serving their copy of the file.

  265. Just put it on an SMB share. by U6H! · · Score: 1, Funny

    I just put all of my public files on a big smb share. Nothing beets M$ for secure file sharing. Just don't put none of them underscores in you'r domain names. Those broken legacy unics domain controllers can't read them. Boy... That had me stumped fer a while. Thank god for the helpful M$ community, or I'd still be try'n to email all them big files. -U6H!

  266. Re:Forget them both.... Anonymity by sudog · · Score: 2, Insightful

    That's not true--they can tell roughly what the size of files you're looking at, and if you're browsing, which files were triggered-downloaded--for example images embedded in web pages.

    All this information makes it trivial to find out which pages you downloaded, when, and how long you visited.

    The only thing it doesn't do so well is listen in on data you send. But consider--if they're listening to the tcp channel to the remote site then they can listen to outgoing tcp connectivity as well.--and correlate what information came in, and what information went back out.

    You think a single encrypted channel buys you any privacy? Get real.

  267. SSH? by The1Genius · · Score: 1

    I say screw both - use SSH instead!

    --
    The1Genius - Littera Scripta Manet
  268. FTP is slower due to TCP Window Size by Anonymous Coward · · Score: 5, Informative

    FTP implementations frequently use a fixed, small window size. HTTP on the other hand will honor the system limit, almost always larger even without tuning.

    Dramatically simplified, it means that the connection can send a lot more packets without hearing back from the far end, enabling the connection to reach higher speeds (imagine a phone call where you had to say 'okay' after every word the other person said. Now imagine only having to say it after every sentence. Much faster.)

    The tiny window size of (most crappy legacy implementations of) FTP starts to affect download speed at just 25ms latency, and has a huge effect over 50ms.

    A properly tuned system with HTTP can make a single high-latency transfer hundreds or even thousands of times faster than FTP.

    Relevant links:
    http://www.psc.edu/networking/perf_tune.ht ml
    http://www.nlanr.net/NLANRPackets/v1.3/windows _tcp tune.html
    http://dast.nlanr.net/Projects/Autobuf/ faq.html

  269. Re:Use them both! On the same port! by belg4mit · · Score: 1

    sar.casm \'sa:r-.kaz-*m\ \sa:r-'kas-tik\ \-ti-k(*-)le-\ n [F sarcasme, fr.
    LL sarcasmos, fr. Gk sarkasmos, fr. sarka]zein to tear flesh, bite the lips
    in rage, sneer, fr. sark-, sarx flesh; akin to Av thwar*s to cut 1: a
    cutting, hostile, or contemptuous remark : GIBE 2: the use of caustic or
    ironic language - sar.cas.tic aj - sar.cas.ti.cal.ly av

    --
    Were that I say, pancakes?
  270. Re:Use them both! On the same port! by belg4mit · · Score: 1

    Who the hell authenticates when serving up files?
    Geez, anonymous read access for all. However,
    one could always use sftp.

    --
    Were that I say, pancakes?
  271. This is Bad and Rong by Baloo+Ursidae · · Score: 2, Interesting
    The irony in adding concurrent connections to the same source is you screw everyone else. You also screw the source site out of bandwidth themselves, and otherwise consume resources in a manner that will appear greedy and ungrateful to the site operator, making them less likely to want to continue in the future. Do not do this. Use a faster mirror when available, and autoresume instead, wait it out.

    In Unix, you can background this operation fairly simply...

    $ at now<br>
    at> wget -cw15 -t0 http://fast.mirror/path/to/file

    This will start downloading your file in the background, will autoresume if something happens, waiting 15 seconds between retries, and never give up until the file is completed or the source no longer has it. You'll get an email when it completes one way or another.

    --
    Help us build a better map!
  272. Why I am stuck with FTP by Suffering+Bastard · · Score: 1

    I'm an independent web developer who is unhappily dependent on ftp. The main problem is that none of the companies that host my clients' web sites offer secure ftp. More often than not, I inherit web sites that are already hosted somewhere, and the client is not interested in switching providers.

    I have recently partnered with a hosting company that can support secure ftp, and I'm working on getting that going. However, there's no way I can convince all (or even most) of my clients to change host providers at a higher cost, just because the ftp is secure. I suppose I could try to strongarm them into it, but, well, I'd kind of like to keep my clients.

    It seems to me that if web hosting companies would start encouraging sftp, then us web developers could start phasing out this ugly ftp stuff. That should (hopefully) get the ball rolling.

    Let's start a grassroots campaign! "Nerds Against FTP" (NAFTP) Soon we'll start seeing green "FTP Free" banners everywhere!

    -SB

    --
    "Molest me not with this pocket calculator stuff."
    - Deep Thought
  273. You are obviously not a native English speaker ... by Anonymous Coward · · Score: 0

    Polite rant:

    I have never been a spelling fascist but this is to much. Have you ever heard of spell check? You are insulting everyone on slashdot. Typo here and there is excusable but "inventing" your own orthography is plain rude.

    Honest rant:

    Fuck you!

  274. This is dumb, by jericho4.0 · · Score: 1
    I'm going to be a cynical l33t jerk and say; what a stupid question. HTTP and FTP have obvious strengths and weaknesses depending on what you're trying to do with it. Read up on the protocols, make a choice.

    I'm not trying to suggest that I wasn't that clueless at one time, just that maybe this isn't a /. caliber question.

    Oh well, kudos to the poster for being concerned enough about security to ask around. I'll just shut up now.

    Oh yeah; FTP.

    --
    "A language that doesn't affect the way you think about programming, is not worth knowing" - Alan Perlis
  275. Re:Forget them both.... Anonymity by dmayle · · Score: 2, Interesting

    So I should abandon encryption and just be free to let whomever listen to traffic coming from my box? If the the images are locally referenced, they'll be transferred securely as well (talking https here). And modern browsers keep connections open for reuse, so that only thing that can be gleaned is when a spike happens, which means that you are loading content from the same site, but not how big it is, since a web page is a bundle of different elements that need to be retrieved.

    Also, if you think that just knowing when data packets are sent and received tells you the contents of the data, then why hasn't SSH been broken yet? With those assumptions, it should be easy to use a statistical model of people's keystrokes and break into a session. Realistically? Not possible.

    You've got to start somewhere, especially if you're going to get the world to transfer to using encryption everywhere. The mail server I use for private mail among friends has no unsecure channel going out of it. All of it's protocols are protected with SSL/TLS, including SMTP inbound and outbound. And besides, the argument I was making was for using encryption to connect to a public mirror site. Since the majority of mirrors have HUGE numbers of different files, and the amount of control data sent is never constant, knowing how much data is sent in either direction will NOT be a guarantee that you know what was transferred.

    AND, I was talking about legal prosecution (or persecution, depending on how you see it), and a document that says you downloaded approximately enough bytes to be a suspect program isn't enough to stand up in court...

  276. I'm left wondeirng why... by pauldy · · Score: 1

    and this isn't even a cliff post.

    To the question at hand I have to thrown in my .000002 cents just because I feel like typing tonight.

    HTTP, good for files small enough to be downloaded in seconds. FTP anonymous access, good for files that take minutes or more.

    People who don't use this technique are the exception not the rule. Unfortunately people exist who refuse to look beyond the face of getting the job done. In areas were outcomes are not always rendered under ideal controlled conditions this leads to unpredictable outcomes. People who think simply either deal with this or allow their servers to propagate worms like nimbda, codered, or slammer.

    That being said your best bet is to run a chrooted ftp server with anonymous access. Use this server for large files and your http server for webpages and images.

  277. bittorrent! by Anonymous Coward · · Score: 1, Informative

    You want bittorrent

    http://www.bitconjurer.org/BitTorrent/index.html

    It makes it so a few people start downloading, and they in turn upload what they have to others, and it just kind of "spiderwebs" out, reducing the strain on the original host.

    I wish huge projects (distros, mozilla, etc) started using this. It would make everything SO fast.

    I'm not the guy that coded it, just a happy user.

  278. Re:Yeah, whatever asshole by Blkdeath · · Score: 1
    If you weren't so fucking illiterate, you'd see he did manage to get it set up. Why don't you go learn to read?

    Wow. That's a strange twist. No, Mr. Pot, I am not black.

    He created a cockamamie setup involving external daemons and strange rulesets and workarounds. This is the amateurish stuff that household cowboys (most of whom post to Slasdhdot, it seems) hack up and call "done".

    My NAT'ed FTP servers have one or two firewall rules and a proper configuration and they work. Give me a 500MHz machine and I'll set up an FTP server (compiled from source) behind NAT inside of an hour. Properly.

    --
    BD Phone Home!

    Shameless plug. Like you weren't expecting it.

  279. bin or asc by fodi · · Score: 1, Insightful

    ftp> get mybigfile.iso
    file transfer started
    /* walk away from PC. Come back 2 hours later */
    ASCII data transfer of mybigfile.iso successfully completed.
    /* Doh!!!!! */

  280. http://www.ssh.com by Anonymous Coward · · Score: 0

    I know it's not openSSH, but they have a very nice UNIX product, and the M$ Windows product comes with SFTP (both with icons and the applications are self-explanatory)

  281. What about rsync or scp by mcbridematt · · Score: 2, Interesting

    FTP, in my opinion is antiquated.

    In the uploads arena, I could transfer any file faster on rsync or scp, or even cvs -z5. And thats over 56k.

    FTP isn't so secure, it's pratically text on port 23 (wonder why the warez sites still use it, aren't they trying to avoid goverment agencies? and M$ and all that crap?).

    HTTP is faster for smaller files as FTP eates up a whole lot of time doing the connection procedure.

    1. Re:What about rsync or scp by Anonymous Coward · · Score: 0

      I hear that warez sitez use seperate SSL authentication now, before you can connect. They are 133+ after all. :)

  282. XML is probably best by pyth · · Score: 2, Funny
    As a veteran computer engineering expert, I find myself suprised by the number of problems that can be solved by XML. In fact, every time I get a problem these days, my first thought is "can XML do this?". In many cases, like this one, the answer is yes!

    The biggest advantage of XML is that software does not have to be changed for a different XML data format - they all use XML, the standard bracketing syntax. I know most major browsers support an XML view mode, so they don't need to be upgraded to download by XML.

    I'm sure that there are people out there saying that XML is inefficient, but that's simply not the case. We can use special XML commands that allow us to include large blocks of binary data -- at the expense of portability to 14-bit computers, of course. In total, an XML download should only have about 30kb of metadata added to it. Author, guid, PGP signature, original source, license, and all that good stuff.

    We can hope for the day when the need for binary transfers will be over, since everyone will be using XML files.

    1. Re:XML is probably best by Mike+A. · · Score: 1

      I wish I could rate this Funny and Overrated at once... :)

      --

      --
      Do I look like I speak for my employer?
  283. Re:Forget them both.... Anonymity by Gonzoman · · Score: 1

    I worked on the DEW Line in the early eighties. The USAF installed a crypto system that had been compromised. We were not allowed to send any classified traffic over it. One reason we thought of for this was to give the Russians a hobby breaking the keys and decrypting our purely administrative traffic. The more likely reason was that USAF was completely insane.

  284. BPFTP. by Grendel+Drago · · Score: 1

    Use Bulletproof FTP, if you're running under Windows. I'm sure other download managers allow it too, but BPFTP seems to not include crapware. That, and it's a decent FTP client.

    --grendel drago

    --
    Laws do not persuade just because they threaten. --Seneca
  285. FTP is just as doable over SSL by cryptor3 · · Score: 2, Informative

    If you're talking about the human engineering aspect of this discussion only, then I have no disagreement with you. However, FTP is just as technically feasible over SSL, since SSL works at a lower level on the network stack than FTP.

    Furthermore, there are good FTP clients that have SSL support. For example, CuteFTP supports FTP over SSL (and has a very user-friendly interface, for the clueless end user).

    There are a good number of servers supporting FTP over SSL. ServU and Sambar are some of the windows servers. Just do a google see what else there is.

    1. Re:FTP is just as doable over SSL by cryptor3 · · Score: 2, Funny

      sorry for repetition, apparently missed the last comment.

  286. Support is pretty common by adamsc · · Score: 1

    All the time - even four years ago when I was relying on HTTP's resume to work around a cable modem which would hang connections after 50KB transfered (don't ask), it didn't require anything unusual.

  287. Re:Yeah, whatever asshole by Anonymous Coward · · Score: 0

    Amen to you. Way to many people thinking they set things up correctly simply cause it works. A sledghammer and a bulldozer both work to demolish a house. Choose the correct one and you'll save yourself a lot of time.

  288. HTTP Not Slower Than FTP by sabat · · Score: 1


    HTTP is definitely faster, because there are fewer security checks, and there's no reverse connection to make. As with most things, it's not a matter of what's empirically better, but what's more appropriate for which task. If you need a quick download and you don't think any data is going to be distorted beyond TCP's ability to sort through, HTTP is your man. When integrity counts, FTP or some other protocol with more stringent checks would be the choice.

    --
    I, for one, welcome our new Antichrist overlord.
  289. HTTP by adamsc · · Score: 1

    Like most /. types, I'm frequently pulling down files from all sorts of different servers. I'll pick HTTP any time I have the choice as my experience has been that FTP is far more likely to be slow and unreliable.

    I'd prefer to admin Apache rather than any FTP server I've used, simply because it's more flexible.

    There's also a technical problem with FTP - the split control / data feature. Firewalls rarely break HTTP; FTP is far more likely to get complaints from users. Most of the servers are also rather low quality, too - small HTTP transfers almost always complete before an FTP server finishes connecting, let alone transfering a file, and I've run into a surprising number which don't allow you to resume transfers.

  290. Stop the firewall madness... by yomamasbooty · · Score: 2, Informative

    Seems to be a lot of comments about firewalls and FTP from people who obviously don't work with them. Remember there are three basic types of firewall technology: packet filters, proxies, and stateful inspection.

    Packet filtering alone is always a problem because you have to open up all of the high ports.

    Proxy firewalls and FTP (active or passive) are a no brainer as long as either feature has been enabled. Remember that proxies "watch" the conversation so it will manage the connection if it's data coming back to the client on port 20, and will recognize the 'pasv' command in the command channel.

    Stateful Inspection firewalls include proxying code for the major protocols ie FTP, HTTP, Telnet, etc. So you are covered here as well.

    If you are having problems using FTP through a firewall then you are probably:

    -Are being blocked intentionally

    -Have a lazy security admin who hasn't updated the firewall in five years

    -Have a stupid router jockey "securing" the network with router ACLs (packet filters).

    As long as you are using a major firewall release like Checkpoint, PIX, Netscreen, IPTables, etc, that is up to date there will not be an issue getting FTP to work.

  291. Re:My opinion by grolim13 · · Score: 1
    since these days most networks use switches instead of hubs, one has to wonder how much of a security risk sniffers are anyway

    Ettercap is your friend here. :)

  292. Re:Yeah, whatever asshole by FireBreathingDog · · Score: 1
    dude, lay off..

    i have some stuff you can smoke that will mellow you out.

    in the meantime, he wasn't just talking about getting FTP working with NAT, he was talking about getting FTP through ssh tunnelling working with NAT.

  293. MOD PARENT UP! by Anonymous Coward · · Score: 0

    Thank you.

  294. HOW ABOUT UPLOADING??? by craig1972 · · Score: 5, Insightful

    It seems everyone talks about DOWNLOADING. How about UPLOADING? How fast and wonderful is HTTP for that?

    1. Re:HOW ABOUT UPLOADING??? by Anonymous Coward · · Score: 1, Interesting

      We have a cheezy VB client that can saturate 100MBs with HTTP PUTs, far faster than SMB or TLS. There's nothing wrong with the protocol at all -- the client and server tools just aren't built for it.

    2. Re:HOW ABOUT UPLOADING??? by You're+All+Wrong · · Score: 1

      Pretty nifty. It also gets round the silly firewall at work. They block all ftp access, but I can still move files between home and work machines using HTTP.

      So for uploading thru' firewalls, it just can't be beat.

      YAW.

      --
      Your head of state is a corrupt weasel, I hope you're happy.
    3. Re:HOW ABOUT UPLOADING??? by Anonymous Coward · · Score: 0

      Have you ever heared about PUT HTTP method?

    4. Re:HOW ABOUT UPLOADING??? by zackbar · · Score: 1

      Uploading isn't necessary for many purposes.

      At my current client, I convinced them to eliminate ftp from the iis servers.

      My reasons?
      They *only* ever needed ftp to allow users to download (small) pdf files;
      They had trouble understanding the security (every other week, the security got broken when someone played with it. It was no use telling them not to touch it.);

    5. Re:HOW ABOUT UPLOADING??? by CmdrWass · · Score: 2, Funny

      You bring up a good point... HOWEVER, that wasn't the question:

      An anonymous reader asks "Looking to serve files for downloading (typically 1MB-6MB"...

      That's probably why "It seems everyone talks about DOWNLOADING."... Because some of us read the initial post before replying.

    6. Re:HOW ABOUT UPLOADING??? by Anonymous Coward · · Score: 0

      Good point. I'd say if you only need to provide a downstream, i generally prefer HTTP, cuz FTP requires logins and is genenrally slower. Plus i have no probs using http anywhere. That includes a lot of platforms, and from shells. wget works great with http.. so does lynx and links, of course.. and curl is another good option.

      If you need to upload - that's a whole 'nother story. So i'd say FTP has it's place. It's also good for controlling access to the server. I know it can be done over http with apache and some .htacccess knowledge, but it's pretty easy with ftp.

      But anyway.. i'm sure everyone here knew that :)

  295. avoid FTP by benedict · · Score: 0

    End of story.

    --
    Ben "You have your mind on computers, it seems."
  296. beauty of ssh by dollargonzo · · Score: 1

    what's wonderful about ssh is that it provides essentially a security layer. the entire ftp connection is tunneled through ssh. same goes for any software that needs to connect to another computer. it's a brilliant way to secure a connection without having to reimplement all the encryption

    --
    BSD is for people who love UNIX. Linux is for those who hate Microsoft.
  297. Gopher by Anonymous Coward · · Score: 0

    times like this I want Gopher back.

  298. Re:Yeah, whatever asshole by Anonymous Coward · · Score: 0

    in the meantime, he wasn't just talking about getting FTP working with NAT, he was talking about getting FTP through ssh tunnelling working with NAT. hm..like its that hard? seriously, it took no more than 15 minuttes getting working my SFTP server. Either you're clueless or just plain stupid, prolly the latter....

  299. FTP a crumbling legacy protocol? by mharris007 · · Score: 2, Interesting

    I have never thought of FTP as a crumbling legacy protocol full of security holes. Each protocol has its flaws, security flaws or not. HTTP isn't free from security holes.

    They are two different protocols designed for two different purposes. If you plan on transfering large amounts of data, and want it to be more reliable, I would most definetely recomment FTP. FTP is made for transferring files, and that is what it is best at doing.

    If you are not concearned with data integrity and plan on transferring decent sized files, I would wish you the best of luck with HTTP.

    As far as security holes go? I have no idea, but I imagine both protocols have had their fair share of security issues.

    For more reliable transfer of larger files, I would really recommend FTP.

    --


    ---
    Mike
    I'm going to kick the next person that I see with their karma rating in their sig.
  300. BitTorrent by Robotech_Master · · Score: 2, Insightful

    You might consider setting up a BitTorrent tracker on your website, and making the files available that way. It's not any worse than website bandwidth, and since you're also leveraging the outbound bandwidth of sites that download the file, it could be faster.

    --
    Editor Emeritus and Senior Writer, TeleRead.org
  301. SFTP! by clubin · · Score: 1

    It's like FTP, but it's SECURE!

    1. Re:SFTP! by clubin · · Score: 1

      *is willing to bet that any moderation made on the parent comment won't be right WRT to the mood of the comment*

  302. HTTP is better by NigelJohnstone · · Score: 1, Flamebait

    FTP:

    No standard directory listing

    Designed for human readable command lines not machine readability

    Bad error recovery, many differing standards on restart

    Password sent in plain text, not even concealed

    ASCII mode! Need I say more?

    HTTP: none of the above

    1. Re:HTTP is better by Kjella · · Score: 1

      FTP:
      No standard directory listing
      Designed for human readable command lines not machine readability
      Bad error recovery, many differing standards on restart
      Password sent in plain text, not even concealed
      ASCII mode! Need I say more?
      HTTP: none of the above

      Yes. HTTP has *no* directory listing at all as a protocol. And tell me, how is ftp any less machine readable? From what I remember every FTP command got it's own number, is that hard? As for error recovery, I've never had a problem with my auto-reconnect & auto-resume client. Are you telling me IE/Opera/Mozilla/Netscape all got the same good and consistent error handling? Oh and .htaccess is plaintext too, you can do encrypted logins on HTTP, but you can on ftp too (sftp).

      The difference in my opinion is that ftp is session-based, http is transaction-based. If I simply want to link directly to a file, I'd rather use http. If I want them to browse my p0... uh mp.. uh home-made music collection, queue files and stuff, I'd set up a ftp server. So the question here should really be how his users will use the server...

      Kjella

      --
      Live today, because you never know what tomorrow brings
    2. Re:HTTP is better by PigleT · · Score: 2, Interesting

      "No standard directory listing"

      Neither has HTTP.

      "Bad error recovery, many differing standards on restart"

      Erm, yeah, it's so non-standard that prozilla doesn't exist - exploiting the `resume' potential of most FTP servers to parallelize downloads starting 0, 25, 50, 75% through the file. Yeah right.

      "Designed for human readable command lines not machine readability"

      Oh, come *on*. When there's no standard output format at all in HTML, how can an `ls -l' output not be vaguely standard? Are you unaware of the SIZE FTP command?

      "Password sent in plain text, not even concealed"
      And somehow HTTP with its sending of usernames and passwords also in plaintext is "better"?? Does it look flourescent pink on your screen, or something?

      "HTTP: none of the above"
      Poster: no clue what he's on about. HTTP: all of the above. Readers: much annoyance.

      HTTP is more easily integrated with SSL in the form of HTTPS.
      Almost everyone has an ftp client. You have to install curl or wget or lftp yourself consciously in most distributions.

      HTTP: no standard for file uploads, you rely on server-side configs and handlers for the purpose. How mad is that??

      --
      ~Tim
      --
      .|` Clouds cross the black moonlight,
      Rushing on down to the circle of the turn
  303. Security Holes? by NerveGas · · Score: 2, Informative

    Serve out anonymous FTP through public file (http://cr.yp.to/publicfile.html). Then there aren't any security holes.

    Really. The security holes in sendmail can be fixed by installing qmail. The security holes in BIND can be fixed by installing djbdns. The security holes in WuFTP (and most others) can be fixed by installing publicfile. There are also other good programs out there as well.

    steve

    --
    Oh, you're not stuck, you're just unable to let go of the onion rings.
    1. Re:Security Holes? by Anonymous Coward · · Score: 0

      Really. The security holes in sendmail can be fixed by installing qmail. The security holes in BIND can be fixed by installing djbdns. The security holes in WuFTP (and most others) can be fixed by installing publicfile. There are also other good programs out there as well.

      Sorry, replacing all the standard programs with new ones written by one over-controlling nut with a chip on his shoulder doesn't qualify to me as a solution.

    2. Re:Security Holes? by bonezed · · Score: 1
      Having recently discovered djb's software I agree with what you say.


      That said, I think publicfile sucks espescially for command line ftp. Thats why I use pure-ftpd.

      --
      ---- Put Sig here:
  304. Yep, SFTP... by repetty · · Score: 1

    Yep, I really like SFTP. It works the way I'm accustomed to working with FTP when I'm at a command line. It's secure.

    I'm not sure why more people haven't mentioned SFTP. It really is great.

    --Richard

  305. Rubbish! by Anonymous Coward · · Score: 0

    What a load of BS!
    When an admin tries to block multiple connections from the same client, it's not because he doesn't want this client to get his files in 1/6th the time. He wants Joe Sixpack to get the files without squeezing some poor bastard on a 28k8 (yes, they still exist) off of the system.

    Plus, how often does this multiple connection crap actually yield a performance boost? Getting 2 connections normally doesn't give more than a few kb/s and each subsequent one will just give you less speed, if any.
    I've had a stupid mfer trying to get no less than 1000 simultaneous connections off of my FTP!

    Going back to the original question, I feel there's more control over what's happening when you're working with FTP, which is particularly handy when you've got a small, localized FTP running. I've made an IRC bot that will put the IPs of the various people in the channel into the /etc/hosts.allow file. That way if you're not in the proper IRC channel (where I can talk to you in case you're fucking up) you won't be able to connect to the FTP. One more thing not to worry about when securing the box.
    Yes, yes, I know that this only works at connection time, and a user is free to leave IRC again once the connection has been made. Still, it's better than nothing (and for HTTP, it clearly is just that: Nothing).

    My 0.02

  306. No, no, no! by Anonymous Coward · · Score: 0

    With the proper, stateful, FW there's no need to open any high ports. The FW's in Linux and *BSD can have all (high) ports closed and recognize when they need to open _one_ port to _one_ client for a short period of time.

    Peder

  307. MGET by gafferted · · Score: 1, Interesting
    Arn't we missing something?

    ftp includes mget. So I can download all the pictures with:

    mget *.jpg

    Without messing around clicking and saving lots of things. Sometimes a command line rocks.

    Andrew

    1. Re:MGET by katmacan · · Score: 1

      yes you can. but get *.jpg wont work. it would say *.jpg not found. mget means "multiple get" .
      in my experience ftp is best used from the command prompt and yes, the command line allways rocks-big time.

      Katmacan.

  308. You need a proxy/caching appliance. by Deal-a-Neil · · Score: 2, Insightful

    If you're providing downloads that may reach a decent volume, I would recommend a caching appliance. A CacheFlow server (they were bought out by BlueCoat systems) or something similar should do the trick. These can cache HTTP and FTP inbound requests, and instead of having the load on your servers, these things will serve up your files instead. A good cache appliance can serve up files a lot faster/more-efficient than a web server, and you won't bog down your box with processes.

    These caching appliances can also broadcast multimedia streams (Real or WinMedia) with the correct licenses.

    I would do some research on some CacheFlow boxes, which, by the way, are selling on the cheap at eBay. These were the $25,000 (circa 1998-2000) priced appliances that you can now pick up for, sometimes, in the hundreds of very low thousands.

  309. P2P! by Jeppe+Salvesen · · Score: 2, Interesting

    Serve up over P2P protocols, and tell people what filename to look for. If the file becomes very popular, you'll only need to serve up the page giving directions on how to download it :)

    (yes, yes, I know, requiring people to use spyware-laden software is not nice, but it's a good idea in an ideal world)

    --

    Stop the brainwash

    1. Re:P2P! by TeddyR · · Score: 1

      Or p2p programs like shareaza that allow for magnet links..

      From the shareaza site (http://www.shareaza.com/)

      "Shareaza was the first client to introduce true web-linking to the Gnutella network, making it easy to place links to shared files on web pages and other dynamic media.

      You can now place a link on a web page (or other document) which when clicked will open Shareaza and automatically search for and download the selected content. It's that simple!

      Shareaza supports P2P standard magnet: URIs, along with network specific gnutella:// URIs, and several more just in case. What do they look like? Here's a link to the latest Shareaza download:

      magnet:?xt=urn:sha1:DPGYF567INMEC5WFRVLII6GXF4HK P2 CG&dn=Shareaza1800.exe

      When you click a P2P link, Shareaza shows a friendly "what do you want to do" window where you can choose to either download the file directly, or just do a search for it"

      --

      --
      Time is on my side
  310. Limit number of connexions, NOT which FTP client by Reziac · · Score: 3, Interesting

    Instead of banning download managers that can do segmented downloading, why not just limit the number of connexions from a given IP? That solves both the segmenting and the "tons of files at once" problems.

    I can make a dozen or more connexions to your FTP server with nothing more exotic than Netscape. Why pick on download managers when they use the same number of connexions? (BTW, Getright says right in its configuration that "some servers regard segmenting as rude" and recommends against it.) Better to limit connexions to x-many per IP address, and let the user spend them any way they wish.

    BTW, if you do limit connexions, please remember that it usually takes one for browsing the site (using Netscape or whatever) PLUS one for the download manager to fetch the file. Otherwise the user who was looking with a browser has to leave the server, then wait for the browser connexion to close (which can take a while) then finally paste the link into the DLManager. So a limit of two connexions from a given IP is a nice practical minimum, and surely not a hard load for anything outside of home servers operating over dialup.

    PS. I love FTP's convenience, and I always try to be extra-polite to small servers (and not rude to big ones). I do use Getright, and have segmenting disabled (which BTW is the default).

    --
    ~REZ~ #43301. Who'd fake being me anyway?
  311. Re:Limit number of connexions, NOT which FTP clien by Schoinobates+Volans · · Score: 1
    Instead of banning download managers that can do segmented downloading, why not just limit the number of connexions from a given IP?

    Because it hurts people behind NAT

  312. Acronyms by dago · · Score: 1
    just to remind that
    • FTP = File Transfer Protocol
    • HTTP = HyperText Transer Protocol


    What do you want to transfer ?

    In another view, I'm really fed up with the current 'anything over HTTP' approach, there are even VPN over HTTP...

    --
    #include "coucou.h"
  313. Re:Limit number of connexions, NOT which FTP clien by Reziac · · Score: 1

    Why and how is that?

    I see connexion-per-IP limits fairly often, tho mostly on small or private servers -- which of course are the ones more adversely-affected by connexion hogging. Whereas a server with a large user limit really isn't going to be all THAT crippled by a few people using several connexions apiece.

    --
    ~REZ~ #43301. Who'd fake being me anyway?
  314. multiple files and text clients say: use FTP by phooka.de · · Score: 1

    HTTP is OK, but try downloading that file from the command line. Even Windows has a command-line ftp-client.

    Also, FTP has the useful "mget"-command to download multiple files. Try that with HTTP.

    Finally, many FTP-clients can download whole directory-trees. I have yet to see this for HTTP, too.

    Synopsis: If you have a specific problem, use a specific tool. The generic tool will be able to do everything - badly. A set of specific tools will serve you well in all situations.

    1. Re:multiple files and text clients say: use FTP by Taurim · · Score: 1

      You should try wget (on *nix or windoz), it can do everything you say with http or ftp.

  315. safetp - Transparent FTP Security by chongo · · Score: 1
    Ftp is far from dead. One can use ftp via the over-the-wire protocol and cryptographic info via X-SafeTP1. See also RFC 2228. as well.

    I highly recommend using the Berkeley:

    SafeTP

    for secure ftp transfers. The SafeTP client & server code runs well on Unix / Linux as well as those MS-based boxen.

    Our ISP has been successfully using SafeTP for several years. Their windoz users transparently use SafeTP with any Windoz FTP application.

    Unix folks get that good ol' command line tool. Other Unix interfaces exist for HP-UX, Solaris, Linux, DEC OSF, FreeBSD, OpenBSD, Irix, AIX, etc. SafeTP works across firewalls as well.

    With cryptographic protection and authentication, SafeTP is a nice ftp solution.

    --
    chongo (was here) /\oo/\
  316. Where'�s the proof? by Kjella · · Score: 1

    I've been running at about 90% of my theoretical speed (7.2k/8k) using both http and ftp for big files. I assume the "real" max speed is higher than they tell me though, has managed to do about 7.5k with both multipart ftp and multipart http. Never found any difference between the two though.

    Kjella

    --
    Live today, because you never know what tomorrow brings
  317. Frisbees by Aluminum+Tuesday · · Score: 2, Funny

    Stand on your rooftop with a CD burner and frisbee CDs to anyone who calls to initiate a transfer!

    The ONLY way to serve files!

  318. HTTP is better for most cases by pieterh · · Score: 4, Insightful
    The main strengths of FTP over HTTP for file transfers are:
    • Easy command line scripting of FTP sessions via 'ftp' client available on most systems. In contrast, scripting an HTTP session requires some simple but non-trivial programming in Perl, Ruby, etc.
    • Fastest file transfers, since binary data is not encoded in any way.
    • Simplicity of the presented information, which users see as a file system.


    The main strengths of HTTP over FTP for file transfers are:
    • More-or-less guaranteed access through all corporate firewalls.
    • Virtual hosts, something that FTP does not support in any standard fashion.
    • Easily extended into more secure realms using various kinds of authentication, SSL, certificates, etc.
    • Support for MIME types.
    • (Obvious) Ability to encapsulate your files in an interesting context, e.g. web site, wiki, etc.


    The other differences one sees are due to server design issues. I.e. most FTP servers are large and spawn a process per connection, which makes FTP sessions much slower than HTTP sessions. But if you want to use FTP, there are very fast FTP servers out there.


    Overall, in today's world, it does not make sense to use FTP unless you have a requirement from your users. For public access to files, use HTTP or something more modern, such as rsynch, or a P2P network.


    As usual, you should answer such questions by thinking about your target users and asking yourself what they are likely to be most comfortable using. Chances are it's their main tool, the web browser.

    1. Re:HTTP is better for most cases by OpCode42 · · Score: 1

      Fastest file transfers, since binary data is not encoded in any way.

      Binary data is sent as binary data with the appropriate header... its not uuencoded you know!

      A disadvantage is you cant resume your downloads, as you can with most ftp daemons and clients.

    2. Re:HTTP is better for most cases by pieterh · · Score: 1

      HTTP/1.1 servers that support resume (which means most modern servers) use data chunking, which means encoding binary data.

  319. Re:Limit number of connexions, NOT which FTP clien by CProgrammer98 · · Score: 1

    Grrrrr it's CONNECTION not CONNEXION

    --
    And the people shall be oppressed, every one by another, and every one by his neighbour Isaiah 3:5
  320. WebDAV over HTTP by Anonymous Coward · · Score: 0

    Pros: FTP-like filesystem-style handling, while still using HTTP.

  321. Cache size by harmonica · · Score: 1

    The rsync algorithm docs say that [...] the much more expensive strong checksum must be calculated for each block where the weak checksum matches.

    So the strong checksum (MD5) must be cached for a lot of blocks (typical application: files are nearly identical), and block size is usually 500 - 1000 bytes. Is 1/30th the size of the original (500 bytes vs. 128 bits) acceptable for the checksum cache?

    1. Re:Cache size by Skapare · · Score: 1

      For rarely changing (relative to how many times downloaded) files on public rsync servers, a high blocksize would be more appropriate. I regularly use 8192 bytes. I'd use even larger, like 65536, if it weren't for the fact that something is broken at 32768 and larger. When the file being downloaded is compressed already, the rsync algorithm is not very effective for much more than resuming incomplete transfers, or transferring only the part of the file after a change is detected (on average, half the file).

      In some cases other blocksizes are better. If the file is not compressed and is an ISO image, using a blocksize of 2048 allows re-building an ISO where a significant amount of file data has simply been moved around the image when it is reconstructed. Since the ISO format uses 2048 byte filesystem blocksize, those are the "snap-to" points for content data blocks. The rsync algorithm does quite well with uncompressed ISO images. It can also be used for uncompressed tar images when the blocksize is chosen to match the tar blocksize, which is often smaller like 512 bytes. Since PKZIP files are compressed with separate compression states per file, these may also be improved on by rsync, depending on the boundary for starting each file that PKZIP format uses (which at the moment I do not know).

      --
      now we need to go OSS in diesel cars
  322. FTP really *slower* than HTTP by dkf · · Score: 1
    Just because someone in a National Laboratory has put a paper up on the web doesn't mean that they are right. We find (alas, not yet in papers that I can easily locate online) that parallelized HTTP does just as well as pFTP for large (i.e. multi-gigabyte) data transfers.

    For small stuff, avoiding that extra data-connection-setup overhead is a real winner.

    --
    "Little does he know, but there is no 'I' in 'Idiot'!"
  323. Re:Limit number of connexions, NOT which FTP clien by Schoinobates+Volans · · Score: 1
    Why and how is that?

    If you have a limit of 2 connections per IP, then if on a network of 100 machines behind a NAT gateway, three persons want to download something from that FTP server, at the very least one (if not two) of them is screwed: He has to wait fot the *other* people to having finished their download before he can start his.

    I see connexion-per-IP limits fairly often

    "Because other people get it wrong" is no reason to get it wrong, too.

  324. Resource usage by MattBurke · · Score: 3, Informative

    I used to run a server which distributed ~3TB/month. Initially I served these files via proftpd, but it soon became apparent that ftp daemons are far too bulky for high-volume serving.

    Enter apache. On the same hardware which keeled under around 30-50 ftp sessions, I could handle over 400 concurrent http sessions, with plenty of ram left over for the vital cacheing :)

  325. FTP obsolete years ago. by TheLink · · Score: 2, Insightful

    All most people would want to do with FTP can be done with HTTP.

    There are hardly any practical legitimate reasons for an FTP server to shove data to some other place rather than the FTP client and other dangerous combinations FTP allows.

    Uploads? Uploads had better be disabled on FTP by default. Uploads are disabled in HTTP by default, but you can configure your site to accept uploads.

    Mass downloads of files? Just standardise. As is you can already download entire websites. With HTML (not javascript) the links are there. If you want files only you just have to standardise on a program readable way to figure out which links are files to download.

    Resuming of downloads - works on most webservers, works on most ftp servers.

    And http allows more - better compatibility with firewalls and proxies. Can be made to support SSL easily - most popular clients support SSL.

    ---
    FTP is a bad protocol. The PORT and PASV thing is stupid. Most protocols which specify network layer data (IP address, port) in the content layer for programs to use, are bad designs.

    How would PASV or PORT look with IPv6? With HTTP, you don't have to change the protocol much if at all.

    --
  326. Don't forget DiffServ and QoS by sh!va · · Score: 2, Informative

    FTP traffic is given lower priority than HTTP traffic in a large number of packet shaping / DiffServ type routing algorithms.

    These algorithms are based on the assumption that HTTP traffic consists of fairly short bursts and not long sustained transfers which is typically what FTP traffic looks like. Based on these assumptions, these routers give lower priority to FTP traffic than they do to HTTP.

    This does not mean that you should serve large files off HTTP since it'll be "faster". Au contraire, it means that you should be fair to others and serve them over FTP, so that the routers can do the correct packet shaping even if it means a slight speed hit to you.

    Think of people downloading huge files off your web server and screwing up your warcraft (/quake/whatever) game.

  327. Of course you can by C0vardeAn0nim0 · · Score: 1

    some webservers already allow you to resume broken http downloads. some web browsers are too brain damaged to do it right. in this case use a download manager or copy the URL into as a wget parameter and let it handle it.

    --
    What ? Me, worry ?
  328. Re:Limit number of connexions, NOT which FTP clien by grazzy · · Score: 2, Interesting

    alot of companys only have one external ip.

    that'd mean only one user in the entire company can use the server - bad.

  329. Re:Limit number of connexions, NOT which FTP clien by pheede · · Score: 1

    Plenty of people are behind proxies and NAT-like technology, that make a potentially large number of users seem to come from the same IP-address.

    Blocking users based on the number of connections from their IP-address is not an option.

    /pah

  330. Re:Yeah, whatever asshole by Anonymous Coward · · Score: 0

    Give me a 500MHz machine and I'll set up an FTP server (compiled from source) behind NAT inside of an hour.

    Give me a 486 and about three seconds and I'll set up a HTTP fileserver behind NAT.

  331. publicfile by Anonymous Coward · · Score: 0

    Checkout http://cr.yp.to/publicfile.html

  332. Sitting behind ISA now :P by Anonymous Coward · · Score: 0

    I'm participating in a developer course now. The place where it takes place is very closed since all contact with the
    outside World is through a Microsoft ISA Server. That means that I can't even check mail, use IRC or Remote Desktop, or
    download from FTP sites. Therefore I'd recommend using HTTP links, because if I can reach the web page with the download
    link, I'm also sure that I can download.

  333. They both suck, use GSTP by eelen · · Score: 1

    FTP has lots of design flaws and not to mention implementation problems, and so does HTTP. Check out GSTP, http://sf.net/projects/gstp/. It's TLS-based, and feature-rich.

  334. sftp, ftp, http, https by Luguber123 · · Score: 1

    Don't use https or sftp for big files, it's very resource demanding, unless you have a hardware accelerator.

    Why not implement both http and ftp, it's not much effort, just assign the same document root to the (virtual) hosts on both ftp and http.

    I don't think there is any big security issues, when just talking about downloading anyways.

  335. Browser ftp upload support... by emil · · Score: 1

    ...was available in Netscape 4; under windows, just open an FTP url, then drag a file on top of the browser. Under UNIX, after opening an ftp url, an "upload file" option appears in the file menu.

    I don't know if Mozilla et al still support this.

  336. Use ICMP! by Anonymous Coward · · Score: 2, Funny

    It's pure genius! Transfer files via ICMP echo requests! Add a special byte in the ICMP header or data to make the target recognize it as a file transfer and not spam you with echo replies.

    Why not implement FTP over ICMP? It will be the best ever!

  337. HTTP vs FTP by Beast+Of+Bodmin · · Score: 1

    IMO FTP is a more efficient protocol than HTTP, both in terms of negotiating the connection and also in terms of actually shoving the data down the wire.

    There are plenty of secure ftp servers out there. FreeBSD's native one, and ProFTPD to name but two.

    Unfortunately, as I discovered when I had my ADSL line connected almost two years ago, my provider put a higher QoS value on port 80 than port 21 :-( so, as with the Betamax vs VHS debate, popularity weighs in heavier than technical merit.

  338. Or... by Alari · · Score: 0

    1) Design your own propriatary protocol.
    2) Implement it as a primary function of a custom operating system.
    3) Leverage this wedge of necessary technology into a monopoly on hardware and software.
    4) Profit!

    --
    I use Windows... like a two dollar wh.. why don't I just go ahead and not finish that sentence.
  339. Use FTP as well as http. by Anonymous Coward · · Score: 0

    Stick with ftp.yoursite.com and www.yoursite.com, do it right, yeah its a lot of work but dont be lazy. Dont assume people have a browser or wget...

  340. Proxies easier with FTP? by Andy+Dodd · · Score: 1

    I think not.

    90% of proxy systems out there don't support HTTP very well. Some don't at all.

    FTP: Isn't guaranteed to work from behind a NAT firewall. Usually works, esp. with modern NAT firewalls, but isn't guaranteed. HTTP is. Also, the FTP support for Microsoft proxy servers (Found on many corporate firewalls) isn't that hot.

    If you want maximum compatibility, even in the weirdest of network situations, HTTP is the way to go.

    And as far as HTTP being slower/faster than FTP - 90% of the time I've been to a site that offered an option of HTTP and FTP downloads, HTTP was significantly faster and was often encouraged by the site because it uses less server resources.

    --
    retrorocket.o not found, launch anyway?
  341. http ftp what's the fucking difference... by Anonymous Coward · · Score: 0

    once your head is blown off?
    No body wants your shitty little files anyway, stick 'em in the mail.

  342. Re:Limit number of connexions, NOT which FTP clien by Oriental_Hero · · Score: 1
    BTW, if you do limit connexions, please remember that it usually takes one for browsing the site (using Netscape or whatever) PLUS one for the download manager to fetch the file.

    Uuuuhhh, I thought most http connections were not keep alive. So that means your page showing the directory listing (file choice) isn't connected...
    Having clicked on a file to download, the http connection is interrupted by the download manager and it then takes over using as many connections as it is setup for.
    Your browser just stays on it's listing page. If your download manager has maxed out the allowable number of connections, any link you click on for that site should fail...
    At least thats the way I figure it works and has worked for me using a download manager.
    --
    Oriental Hero "I want to live in a city where the Police don't shoot you" Jean Charles de Menezes
  343. Ease of use by Zebra_X · · Score: 1

    HTTP is without question easier to use than FTP. Especially in a firewall environment, HTTP will be MORE reliable than FTP for downloads. If you are concerned about security, use SSL for transferring files.

    My 2 Cents

  344. As usual, it depends ... by Grayputer · · Score: 1

    It really depends on you and your target user.

    Target user:
    Http works great for the point and click crowd but can fail badly for the scripting or Linux/Unix command line crowd. FTP is a better choice for the knowledgable crowd but sometimes too complex for the end luser. FTP with a link on a web page is frequently a good compromise.

    You:
    If you use remote hosting; are not willing to track, chase down, and install ftp patches along with the httpd patches; do not clearly understand how to secure an ftp server; or have other admin skill issues then ftp is probably not for you.

  345. Re:What rsync needs is a port assignment for SSL/T by battjt · · Score: 1

    Nooooooo. Too many application already have bad security built in. Tunnel. Use a seperate well tested secure tunnel.

    --
    Joe Batt Solid Design
  346. Really? by FireballFreddy · · Score: 1

    Does he have nice stuff? Can you post an address?

    -FF

    --
    SQUEAK, the Death of Rats explained.
  347. HTTP POST is slow by Anonymous Coward · · Score: 0

    Last time I tried this on Apache it took like forever. I think this was because the file was encoded, sent and then decoded. The rate was about 1 MB per minute on a 100 Mb LAN.

  348. Re:Limit number of connexions, NOT which FTP clien by metamatic · · Score: 1

    Limiting the number of connections from a single IP address sounds like a great solution, until you discover that 300,000 IBM employees are only allowed to download your software one person at a time because they all go through the same huge firewall gateway in Colorado.

    --
    GCHQ Quantum Insert installed. If only our tongues were made of glass, how much more careful we would be when we speak
  349. ZTERM? Kermit is much more Robust by bucktug · · Score: 1

    What about Kermit with CRC-32 checking and amazing packet length.
    Come on people get with the late eighties.

    -bucktug

    --
    I had a flame... but she had a fire.
  350. Vanilla FTP considered insufficient for future nee by Wise+Dragon · · Score: 1

    One of the limitations of FTP and HTTP for file transfer is their inability to fully use available bandwidth. It's not much of an issue at slow (100Mbps) connections, but just as an experiment, try transfering a few Gigs over GigE. Note the bitrate. Now initiate another connection at the same time, and note the total bitrate. Aha! Parallel streams are better! There are specialized programs for bulk data transfer: pftp bbftp bbcp tsunami gridftp to name a few, but they don't do Windows. Bummer!

  351. Re:Different, not better or worse by Scooter · · Score: 1

    I suspect he was talking about the protocol, not just a particular client, so he's using Lynx to talk to http servers - not ftp.

    I suspect that was also the point of the original post - not to discuss whether a particular http/ftp client is better than another - because any number of clients can be written, displaying stuff, and interacting with you in any way you want really. The way lynx, wget, curl, fetch or any number of ftp clients interact with the user is irrelevant.

    No - what's more intersting is how do they stack up as protocols for tansferring bytes in bulk? I have a feeling that http does just as good a job these days, but this is just based on casual observance of file transfers using both mehtods.

  352. FTP or... by Quixadhal · · Score: 1

    FTP is a better protocol than HTTP if you're intending to use it for transferring of files, especially directory hierarchies. Most people who complain about ftp have three gripes: It's not always friendly to firewalls (but that's a firewall problem, not ftp's fault), it's not secure (that's only partially ftp's fault.. it's really the implementation of the server that's mostly to blame), or that IE doesn't handle it well (yeah, it's a Microsoft product... you expect it to work?)

    FTP almost always provides faster streaming (at least it seems that way to me), it's trivial to limit bandwidth and number of connections without impacting your web site (if you serve via http, you can only do this by setting up virtual hosts and mucking with alot of configuration files).

    FTP supports continuation, which is more difficult to do in HTTP -- although not impossible.

    Modern FTP servers support on-the-fly tar and compression of directories when a recursive retrieval is asked for, and usually the client can choose if they want to unpack it as it comes in, or just leave it as an archive. You could do this in apache, but I've not seen it done yet (in fact, I've not seen recursive directory retrieval in apache).

    There ARE other protocols out there (FXP I seem to recall), but none in popular use. SSH also provides a way to get files using SCP or SFTP, but there aren't many good clients in the windoze world.

    Now, having said all this.. nothing stops you from providing both services off the same directory.

    1. Re:FTP or... by TeddyR · · Score: 2, Informative

      There is a fairly usable client that does both SFTP and FTP over SSL.

      FileZilla
      http://sourceforge.net/projects/filez illa/

      --

      --
      Time is on my side
  353. Re:Different, not better or wose -- WRONG!!! by joshsisk · · Score: 0, Offtopic

    And that's the level of insightful commentary I expect from someone posting at -1...

  354. Re:Different, not better or worse by sir99 · · Score: 1
    Well, I won't argue which is better for speed and reliability/data integrity, I was just talking about user convenience. How the client interacts with the user isn't completely irrelevant, because it's partially influenced by what service you're using.

    Sure, you could write a HTTP client that acts like an FTP client (ls [pattern], mget[pattern], mput [pattern]), but to make it work reliably across all servers, the server would have to have a somewhat-standardized FTP-like LIST command or page, since it would be hard to do globbing when the index page is hard to parse. Actually, you could do a folder-view interface like IE does for FTP, but that interface would suck for lynx.

    So I claim that to get the convenience of FTP using HTTP, you'd have to add server features, and write clients to use those features. Of course most people never use globbing, so they might as well use plain HTTP.

    --
    The ocean parts and the meteors come down
    Laid out in amber, baby.
  355. Re:Limit number of connexions, NOT which FTP clien by Reziac · · Score: 1

    Actually, "connexion" is a Britishism. (Which I've found I'm less likely to typo due to better "finger flow".) I also support saving the baby U's by preserving colour and honour. :)

    --
    ~REZ~ #43301. Who'd fake being me anyway?
  356. Re:Limit number of connexions, NOT which FTP clien by Reziac · · Score: 1

    But how often do you see 100 people behind NAT all wanting to download from the same server, where that server is "small" enough that number of connexions matters??

    --
    ~REZ~ #43301. Who'd fake being me anyway?
  357. Re:Forget them both.... Anonymity by melonman · · Score: 1

    They aren't the only ones who are insane, although the fact that they also have all that firepower is a little worrying.

    I remember going to a particularly paranoid seminar on security, and being told about a group of European missionaries who were exchanging pgp-encrypted emails in some African country, and the secret police asked them why they were doing this, which proved how important it is to encrypt your messages. I thought it proved what a dumb idea it is: anyone screening messages is going to pick out the encrypted ones as potentially interesting, and, even if they can't break the encryption, they can always break your door down, pull out your fingernails or just confiscate your computer.

    Sending plain text emails, substituting sensitive words where necessary, strikes me as a far better way to go. Although most of my emails would send even the most conscientious spy to sleep...

    --
    Virtually serving coffee
  358. P2P downloads by bungeejumper · · Score: 1

    Has anyone seen those P2P download buttons on some gaming sites ? They let you download large (100s of MBs) game demos from multiple locations, just like Kazaa and others. That's the best way. Somebody mark this as off-topic !

  359. Re:Limit number of connexions, NOT which FTP clien by Reziac · · Score: 1

    I connect to a lot of small servers that only allow ONE connexion per IP. They *always* complain if I have a view open in Netscape, AND try to fetch a file with Getright. And they'll continue to complain for up to 15 minutes after I switch NS to some other site. But they will let GR in instantly if I briefly close NS.

    When I check with Netstat, it'll claim NS still has a connexion too, so it's not just the server's opinion.

    --
    ~REZ~ #43301. Who'd fake being me anyway?
  360. Re:Limit number of connexions, NOT which FTP clien by gorilla · · Score: 1

    Of course, if you do limit the number of connections from a single IP, you may be limiting seperate clients who happen to be coming from the same proxy. This is particularly common with large ISP's, eg AOL.

  361. Re:Forget them both.... Anonymity by Carnivore · · Score: 1

    <*cough*>Carnivore</*cough*>

    HEY! Everybody seems all concerned that I'm looking at their stuff. I resent that! I'm not a bad guy, really. Why me?

    Do you _honestly_ think that I care where you go on the web, dmayle? Well, I don't. Hmph.

  362. Re:Limit number of connexions, NOT which FTP clien by sweetooth · · Score: 1

    I don't limit connections at all on any of the machines I maintain. However, I block badly behaving robots in a similar manner to those that block the download manager. Limiting connections by IP has other issues to consider such as multiple people browsing from the same NATd network etc.

    Not all download managers are upfront about the issues of segmenting if I remember correctly, but it's nice that getright at least disables it by default.

    It's also nice to hear that you make an effort to be polite to small servers ;) Most people don't seem to care one way or the other.

  363. Re:What rsync needs is a port assignment for SSL/T by Skapare · · Score: 1

    Nooooooo. This is for public access servers to download files. You can't just set up a tunnel for every Joe Downloader that comes along and wants the files. SSL/TLS will do the job just fine.

    --
    now we need to go OSS in diesel cars
  364. Implement them both by Phred+T.+Magnificent · · Score: 2, Informative

    It sounds like your objective is to make files available for download by the public. That being the case, your best solution is to provide both methods and let the person downloading the file determine which method is better for his/her/its needs.

    Some will prefer ftp because it's faster. Others, especially those behind overly-restrictive firewalls, will find that http is a more usable alternative.

    --
    Where is the wisdom we have lost in knowledge?
    Where is the knowledge we have lost in information?
  365. Re:Yeah, whatever asshole by Anonymous Coward · · Score: 0

    But then you wouldn't be showing off your mad-k00l h4xorz skillz. It's not about getting the job done it's about how eleet you do it.

  366. Simple reason by Anonymous Coward · · Score: 0

    I have a quite simple reason for why I like FTP over HTTP.

    I do not have to sift through an endless stream of advertizing and links to get to my file. Its all structured and catagorized to what I want.

  367. can you clarify your statement by Archfeld · · Score: 1

    I am confused here, I stated that FTP works better thru a proxy, because the password login issue with http is confusing...password and ID to get out, password and ID to login to the site for download. You then say "90% of proxy systems out there don't support HTTP very well. Some don't at all." which seems like an agreement then you state "If you want maximum compatibility, even in the weirdest of network situations, HTTP is the way to go." which seems to directly contradict your previous statement. I work from behind a large corporate firewall, unix of course, and using IE and http downloading becomes very tricky when you have 2 id's needed for a download, especially when they are not the same. FTP out of the browser is even wierder when logins are needed at both ends.

    --
    errr....umm...*whooosh* *whoosh* Is this thing on ?
  368. OOPS! by Andy+Dodd · · Score: 1

    Oops. s/HTTP/FTP/ at the beginning of my post. Most proxies I've dealt with didn't deal with FTP well, not HTTP. Big typo there.

    As to proxies: For non-authenticating proxies and access to public files, there are a total of 0 logins to get a file. FTP requires at the very least an anonymous loging. (Although most browsers handle this automagically.)

    For authenticating proxies (Microsoft proxy servers using NTLM for example), the user usually only has to deal with authentication with the proxy once (And in most cases, they do so in order to even log in to their machine).

    Aforementioned MS proxies don't do FTP very well. A company I previously worked for used to have a non-MS proxy that only supported HTTP. NOTHING ELSE.

    --
    retrorocket.o not found, launch anyway?
  369. Re:Yeah, whatever asshole by Anonymous Coward · · Score: 0

    hm..like its that hard? seriously, it took no more than 15 minuttes getting working my SFTP server. Either you're clueless or just plain stupid, prolly the latter....

    sFTP has nothing to do with ftp, appearances aside. sFTP doesn't need to be "set up", its been built in to every OpenSSH install I've ever done, because its an extension of ssh (so it took you 15 minutes how...?). What the original AC rant (of mine) was about was actually using FTP over ssh. sFTP is a better solution, and its what I personally use, but the (human) client insisted on being able to use their site production tool's builtin ftp client to update their site. Hence, a real ftpd was required. I wanted to protect their passwords from being sent cleartext, and the best way to do it while still maintaining compatibility with integrated ftp clients was to use ssh tunnels. Most of the users are on OS X where theres an openssh installed, and a the windows users can use putty's ptunnel (or install cygwin and openssh). Its possible this also could have been done with stunnel on both ends, though I think the same problems (ftp uses network and transport layer info like ip addresses and port numbers, at the application layer) still would have applied.

  370. Re:Yeah, whatever asshole by Anonymous Coward · · Score: 0

    He created a cockamamie setup involving external daemons and strange rulesets and workarounds. This is the amateurish stuff that household cowboys (most of whom post to Slasdhdot, it seems) hack up and call "done".

    My NAT'ed FTP servers have one or two firewall rules and a proper configuration and they work. Give me a 500MHz machine and I'll set up an FTP server (compiled from source) behind NAT inside of an hour. Properly.


    Hi I'm the original poster your replying about. I didn't use "external daemons" (Where did you get that idea?). My setup also worked straightaway with a couple NAT rules and a proper configuration. But it didn't work with ssh tunnels, and I doubt yours would either, unless you've specifically configured it that way (with additional firewall rules). The ultimate setup was to have it *only* work over ssh, so as to not allow users to ever send their password in cleartext (so the nat gateway doesn't forward port 21, but it does forward the high range of ports the data connections from the client will need to come in on).

    Judging from your comments, I'd guess you've never setup an ftpd behind nat for use with ssh tunnels. Your comments are the amateurish stuff that household cowboys post on slashdot to feel better about themselves. And I see you didn't have the sense to [X] Post Anonymously when spewing your drivel out over the internet, Stewart Honsberger. Do you feel better about yourself now? Please, try and connect to one of your ftp servers over an ssh tunnel before replying again, so you can see for yourself what I mean.

  371. Re:Different, not better or worse by raju1kabir · · Score: 1
    Sure, you could write a HTTP client that acts like an FTP client (ls [pattern], mget[pattern], mput [pattern]), but to make it work reliably across all servers, the server would have to have a somewhat-standardized FTP-like LIST command or page, since it would be hard to do globbing when the index page is hard to parse.

    It's been done. I believe you're thinking of lftp. Fabulous little program.

    --
    "Patriotism is your conviction that this country is superior to all other countries because you were born in it." -- GBS
  372. Re:Yeah, whatever asshole by Blkdeath · · Score: 1
    And I see you didn't have the sense to [X] Post Anonymously when spewing your drivel out over the internet, Stewart Honsberger.

    No, I don't hide behind cowardly anonymizers, thank you.

    Please, try and connect to one of your ftp servers over an ssh tunnel before replying again, so you can see for yourself what I mean.

    Already done. What's the problem?

    BTW - if the thread was about serving public, anonymous files; why were you digressing and talking about SSH tunneling? Did you want to feel better about yourself and your meagre accomplishments, or did you just not understand the question?

    Don't bother responding if you're going to hide behind Slashdot. I'm not that terribly interested in what you have to say.

    --
    BD Phone Home!

    Shameless plug. Like you weren't expecting it.

  373. Re:hmm I agree, http resumes nicely �esp w/ wget. by vsync64 · · Score: 1
    I love wget.

    The other day I was copying a large file (Mozilla 1.3b source, repacked as .bz2 to save space) from a remote machine. The machine I was copying it to locally crashed (likely due to bad power; LINE-R is mandated), so I just symlinked it into my remote ~/public_html/ directory and used wget to finish the job.

    I still cringe every time I have to do wget -c; I have bad memories from extremely poor Win32 download restarters. Invariably the download would be corrupted. I have never had a problem with wget.

    And I've noticed personally that FTP connections tend to be more stable and faster once they get going (although it does take longer to establish the connection). I don't know if this is because of something in the protocol, or just because it seems more FTP sites than HTTP sites implement a strict max-users limit, but I tend to prefer FTP for downloads when available.

    Usually I just use Mozilla to find the link on the page that says "current version here" or whatever and then wget that.

    --
    TO BUY A NEW CAR WOULD MAKE YOU SEXUALLY ATTRACTIVE.
  374. Use Both by CompCons · · Score: 1
    Ok...I have a vew issues with everyones posts so far

    1) HTTP is great for downloads but can anyone tell me how to UPLOAD to an HTTP server?

    2) Use Passive tranfers (eliminates NAT issues on the client side)

    3) GET A REAL FIREWALL/ROUTER (a good firewall/router will handle the ftp protocol even with NAT)

    That being said, I don't know about having multiple FTP sites behind a firewall...I don't know of any hardware firewall that can handle that, but in any case HTTP is still useless for uploads.

  375. ARGH it's quite simple! LART! LART! LART! by @madeus · · Score: 1


    Cry Muppet! and let slip the observations of the-bleeding-obvious!

    LART LART LART

    For the benefit of you (and other semiliterate posters who can't grok something unless it's explained in small words) I think you'd benefit from reading this again:

    Additionally the CPU overhead generated by FTP connections also causes many sites to limit the number of users who can connect, which often results in 'busy sessions', something much rarer with HTTP (as HTTP servers typically have very high thresholds for the number of concurrent connections they will support). The overhead on a server of a user downloading a file over FTP is much greater than that of a user downloading the same file over HTTP.

    Once you actually understand how parse that, let's skip on a bit (I don't want to repeat my entire post) and read this:

    This may be partly due to poor FTP server configuration defaults and/or poor administration, but they cannot shoulder all the blame.

    So clearly I do understand the difference between the configuration of a given server and the protocol.

    Now read this (and note the emphasis, if your having too much trouble understanding all of it at once):

    Although FTP is of course theoretically more reliable than HTTP, in practice, because of 'Server busy: Too many users' messages combined with the speed and reliability of modern connections (which in turn makes HTTP more reliable) mean the reverse is often the case from a user perspective - which is what I think the poster is getting at.


    Now did you not understand any of that? Logically I would not be able to give such commentary and in such level of detail without knowing the elementally basics which you've so inelegantly attempted to express.

    Please try and grasp this basic point:

    The most important thing you DON'T seem to be getting is:

    The FTP protocol requires both more bandwidth and a notably more complex server than HTTP does.

    Which means, ipso facto:

    That allowing someone to download via FTP uses MORE bandwidth and MORE CPU time than using HTTP.

    At a maintainable given speed, it is possible to serve more files on a server via HTTP that via FTP. Additionally the HTTP downloads will end slightly quicker (most notable with small downloads around the size the article poster indicated they would be serving) because of the lower overhead.

    And finally (quote, NOT from me):

    Just wait 'til you get an HTTP site that gets maxed on traffic - HTTP server too busy messages really suck... sometimes you don't even get the connection.

    I've managed sites that take millions of hits a day and servers with tens of thousands of individual web sites. :-P

    1. Re:ARGH it's quite simple! LART! LART! LART! by autocracy · · Score: 1
      Even with the assumption that FTP takes more proc time than HTTP, proc time is not going to be the limiting factor, at least not between protocl types. If you're hitting your proc limit on an FTP server before your bandwidth limit, you either have a really big pipe or a really shitty server.

      Quote: At a maintainable given speed, it is possible to serve more files on a server via HTTP that via FTP. FTP works for maintaining that given speed. You're missing the point of that. Bandwidth isn't unlimited, and it's about speed and time of download... FTP's userlimiting function is meant to keep the bandwidth from being divided up too much to be of great use; AND I've managed sites that take millions of hits a day and servers with tens of thousands of individual web sites. :-P I don't care. You're focusing entirely on small files where initial connection overhead is the big factor. I'm making this as a general point.

      And on a personal note, you can kiss my ass for the whole LART thing at the beginning. That was stupid and a great display of being a complete jerk-off. I read the post, and I'm not stupid or in need of a change of mind frame because I disagree with you, and I can use technical information to backup my disagreement. Thank you.

      --
      SIG: HUP
    2. Re:ARGH it's quite simple! LART! LART! LART! by @madeus · · Score: 1

      If you're hitting your proc limit on an FTP server before your bandwidth limit, you either have a really big pipe or a really shitty server.

      Well I'm used to running servers with reasonable bandwidth (single and multiple Gig fibre interfaces), it's what I do for a living. But you can hit OS limits using FTP with any typical server with a 100 MB interface that's getting decent usage (after all that's only going to give you 4 - 6 Mbps which is _not_ a lot for a file server), but it depends on your users and their connection speeds.

      It's not like you have to be serving large amounts of files for this to be true either - it's true for small scale just as it is for big scale operations. You get a benifit from using HTTP no matter what size operation you are running.

      This is why many serious mirrors now prefer users to download via HTTP. Some sites even only offer HTTP downloads. It's all driven by the bottom line - using HTTP is just less overall overhead than FTP (server load, bandwidth), and overhead costs money. If you think some of these big download sites are fools and clearly don't understand what they are doing, go tell them. You clearly know much more about it that they do (the poor fools!).

      As for limiting traffic by controlling how many users can log in to your at once - I suggest you use traffic shaping - do not simply limit the max number of users who can log in. That should be a last resort to prevent your system running away if something goes horribly awry. There is so much obviously wrong with the idea of just limiting the number of concurrent FTP sessions it's just not funny.

      As for you taking offence to my LART:

      and I'm not stupid or in need of a change of mind frame because I disagree with you

      It seems I need to remind you that *you* where the one who stated in your previous post:

      For the record, that is a naive, and possibly flat stupid comment.

      Ahem.

      And as for:

      and I can use technical information to backup my disagreement.

      That's not at all what I've just seen you demonstrate. I don't think you really have much practical knowledge of the topic at all.

      Hash, but fair I think.

  376. Re:Forget them both.... Anonymity by sudog · · Score: 1

    It tells you what the contents of the data is because you were talking about web-traffic. If it's real web-traffic, encryption buys you nothing: the attacker gets a copy of all the files and can correlate how much data you download to the most likely places you're currentyl visiting. It doesn't matter that your browser has keep-alive. The spikes themselves are the important parts--timing is everything.

    If you're interesting in finding out why simple encryption is basically meaningless in applications like you describe (and I'm not talking about SSH sessions here--I never said anything about SSH--I'm talking about the situation you originally outlined) then take a look at the implementation of the cypherpunk remailers.

    The more advanced ones send out junk data at regular intervals and then once this pattern is established, they can replace the junk data with real encrypted data provided the actual traffic patterns remain the same.

    But your scenario--encrypted web traffic--was pretty nebulous to begin with. Perhaps if you were a bit more detailed, we could avoid further (apparent) misunderstanding.

  377. Re:Forget them both.... Anonymity by sudog · · Score: 1

    As for your SMTP remailer, that's still insecure. If you ever implemented a mixmaster remailer you'd know this.

    Let's say the police one day come knocking at your door. Let's say they've been monitoring your "secret" smtp server for a while and have recorded every byte of (encrypted) data along with precise timestamps that's ever gone through your server. The encrypted data itself might be meaningless--but consider what happens when they raid you and your friends' computers. Now they have data they can correlate.

    And how do you know what will stand up in court? Are you a lawyer? Do you have case law experience? If they're monitoring the channel, they have your IP address. What makes you think you'll be "lost in the noise" of all the other transfers and the various control data passed back and forth? Sure it's not a guarantee of what you're transferring, but even if you do directory listings--that can (surprisingly) narrow things down to the point where it becomes obvious what you are downloading: especially if you do it by hand.

    After all, in that case even just the timing of the control data can be a dead giveaway.

    You're handing off tonnes of information for an attacker to base conclusions on, and your idea of encrypting such communications isn't as realistic as you think.

    Two good books for you to read through are "Applied Cryptography" by Bruce Schneier, and "Cryptonomicon", by Neal Stephenson. The latter is dead boring until the end, but it does go through the motions with almost clinical attention to the concept of information warfare.

  378. FTP is NOT dead by bonezed · · Score: 1
    its much easier to use for multiple file transfer than http.


    anyway, if your running a *nix variant try pure-ftpd, it is secure, flexible and easy to use.

    --
    ---- Put Sig here:
  379. Re:Different, not better or wose -- WRONG!!! by Anonymous Coward · · Score: 0

    You, sir, should post more often with your insightful and informative comments. I miss the comments from you, evil_spork, and all the other sporks who never post anymore. Have a good day, sir.