Subaru Enthusiasts Car Club of the Sierras

Subaru Enthusiasts Car Club of the Sierras (https://www.seccs.org/forums/index.php)
-   Off Topic Chat (https://www.seccs.org/forums/forumdisplay.php?f=10)
-   -   html / url download question (https://www.seccs.org/forums/showthread.php?t=5911)

Dean 2007-06-07 02:44 PM

html / url download question
 
Google is useless on this at least with my keywords as there are to many hits related to grabbing urls out of DL streams.

Is there something besides an href I can use to force a download instead of a load in browser window?

I'm trying to post my track video, but really don't want people streaming it from my server, I'd prefer they DL it.

Current link html looks like:
Code:

<a href="Day%201%20session%202%20v1.1.avi">Day 1 Session 2</a><br>
I am running a default Apache install on top of CentOS, no TomCat, etc...

Dean 2007-06-07 03:04 PM

OK, I found something... I can't force anything, but if I can set the MIME content type to application/octet-stream, I have a good chance of getting the effect I want, but haven't figured out how to do that yet...

sperry 2007-06-07 03:43 PM

Unless you're running a RM or Flash server or something, you're not streaming it. If someone attempts to play it directly off the link, it's the equivalent of downloading it to a temp folder, then playing it.

Streaming implies something other than just an HTTP connection, no? ...since they're pulling it from your web server, it's an HTTP download whether or not it's being saved to disk, or saved to disk while playing.

Dean 2007-06-07 03:48 PM

Quote:

Originally Posted by sperry (Post 99147)
Unless you're running a RM or Flash server or something, you're not streaming it. If someone attempts to play it directly off the link, it's the equivalent of downloading it to a temp folder, then playing it.

Streaming implies something other than just an HTTP connection, no? ...since they're pulling it from your web server, it's an HTTP download whether or not it's being saved to disk, or saved to disk while playing.

True enough, but to technical for most. I just don't want people bitching about my server performance when IE/Media Player tries to DL, buffer and play in real time as I believe it will try to do... On my machine FF just sort of hangs while it tries to load the large files...

Dean 2007-06-07 03:51 PM

Quote:

Originally Posted by Dean (Post 99141)
OK, I found something... I can't force anything, but if I can set the MIME content type to application/octet-stream, I have a good chance of getting the effect I want, but haven't figured out how to do that yet...

Looks like that requires reconfiguring Apache and, oh, IE doesn't comply with that RFC anyway, so F it...

cody 2007-06-07 03:55 PM

Most people just say something like, "Please right-click and Save As". But then people like Sperry give you a hard time. :P

sperry 2007-06-07 04:06 PM

Quote:

Originally Posted by cody (Post 99158)
Most people just say something like, "Please right-click and Save As". But then people like Sperry give you a hard time. :P

People that say that don't understand how HTTP works. And I'm a dick, so I make sure to point out their ignorance in a smarmy manner.

Dean 2007-06-07 04:14 PM

Now children.... Behave, or I will kick your ass with my walker... :)

cody 2007-06-07 04:14 PM

Whatever. I totally owned you in that thread. :P

A1337STI 2007-06-11 09:01 PM

Yes true streaming requires that you set up say shoutcast, real server, or windows streaming media server. if they save as link, or let Real player "buffer" before they play, either way its downloading it in the same manor. a client sends a get request, and then subsequent get chunk requests via http. its all in the RFCs if you care to read them. I've had to write some custom download software, ah the joys of tcp/ip sockets ....


All times are GMT -8. The time now is 11:55 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
All Content Copyright Subaru Enthusiasts Car Club of the Sierras unless otherwise noted.