Subaru Enthusiasts Car Club of the Sierras  

Go Back   Subaru Enthusiasts Car Club of the Sierras > Off Topic Forums > Off Topic Chat

Off Topic Chat Talk about life in general...

Reply
 
Thread Tools
Old 2007-06-07, 02:44 PM   #1
Dean
Seņor Cheap Bastarde
 
Dean's Avatar
 
Real Name: Dean
Join Date: May 2003
Location: $99 Tire Store
Posts: 9,294
 
Car: $.04 STI
Class: Fast,Cheap & Reliable=STI
 
Deal, did somebody say Deal? Oh, Dean, yeah that's me.
Default 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...
__________________
I am a Commodore PET --- Now get off my lawn you kids...
Dean is offline   Reply With Quote
Old 2007-06-07, 03:04 PM   #2
Dean
Seņor Cheap Bastarde
 
Dean's Avatar
 
Real Name: Dean
Join Date: May 2003
Location: $99 Tire Store
Posts: 9,294
 
Car: $.04 STI
Class: Fast,Cheap & Reliable=STI
 
Deal, did somebody say Deal? Oh, Dean, yeah that's me.
Default

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...
__________________
I am a Commodore PET --- Now get off my lawn you kids...

Last edited by Dean; 2007-06-07 at 03:51 PM.
Dean is offline   Reply With Quote
Old 2007-06-07, 03:43 PM   #3
sperry
The Doink
 
sperry's Avatar
 
Real Name: Scott
Join Date: Nov 2002
Location: Portland, OR
Posts: 20,335
 
Car: '09 OBXT, '02 WRX, '96 Miata
Class: PDX/TT-6
 
The way out is through
Default

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.
__________________
Is you is, or is you ain't, my con-stit-u-ints?
sperry is offline   Reply With Quote
Old 2007-06-07, 03:48 PM   #4
Dean
Seņor Cheap Bastarde
 
Dean's Avatar
 
Real Name: Dean
Join Date: May 2003
Location: $99 Tire Store
Posts: 9,294
 
Car: $.04 STI
Class: Fast,Cheap & Reliable=STI
 
Deal, did somebody say Deal? Oh, Dean, yeah that's me.
Default

Quote:
Originally Posted by sperry View Post
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...
__________________
I am a Commodore PET --- Now get off my lawn you kids...
Dean is offline   Reply With Quote
Old 2007-06-07, 03:51 PM   #5
Dean
Seņor Cheap Bastarde
 
Dean's Avatar
 
Real Name: Dean
Join Date: May 2003
Location: $99 Tire Store
Posts: 9,294
 
Car: $.04 STI
Class: Fast,Cheap & Reliable=STI
 
Deal, did somebody say Deal? Oh, Dean, yeah that's me.
Default

Quote:
Originally Posted by Dean View Post
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...
__________________
I am a Commodore PET --- Now get off my lawn you kids...
Dean is offline   Reply With Quote
Old 2007-06-07, 03:55 PM   #6
cody
Candy Mountain
 
cody's Avatar
 
Real Name: Cody
Join Date: May 2005
Location: Californication
Posts: 7,751
 
Car: 03 Pussy Wagon, now with more pink!
Class: TESP
 
OMG Internet!
Default

Most people just say something like, "Please right-click and Save As". But then people like Sperry give you a hard time.
__________________
Slow and low, that is the tempo.
cody is offline   Reply With Quote
Old 2007-06-07, 04:06 PM   #7
sperry
The Doink
 
sperry's Avatar
 
Real Name: Scott
Join Date: Nov 2002
Location: Portland, OR
Posts: 20,335
 
Car: '09 OBXT, '02 WRX, '96 Miata
Class: PDX/TT-6
 
The way out is through
Default

Quote:
Originally Posted by cody View Post
Most people just say something like, "Please right-click and Save As". But then people like Sperry give you a hard time.
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.
__________________
Is you is, or is you ain't, my con-stit-u-ints?
sperry is offline   Reply With Quote
Old 2007-06-07, 04:14 PM   #8
Dean
Seņor Cheap Bastarde
 
Dean's Avatar
 
Real Name: Dean
Join Date: May 2003
Location: $99 Tire Store
Posts: 9,294
 
Car: $.04 STI
Class: Fast,Cheap & Reliable=STI
 
Deal, did somebody say Deal? Oh, Dean, yeah that's me.
Default

Now children.... Behave, or I will kick your ass with my walker...
__________________
I am a Commodore PET --- Now get off my lawn you kids...
Dean is offline   Reply With Quote
Old 2007-06-07, 04:14 PM   #9
cody
Candy Mountain
 
cody's Avatar
 
Real Name: Cody
Join Date: May 2005
Location: Californication
Posts: 7,751
 
Car: 03 Pussy Wagon, now with more pink!
Class: TESP
 
OMG Internet!
Default

Whatever. I totally owned you in that thread.
__________________
Slow and low, that is the tempo.
cody is offline   Reply With Quote
Old 2007-06-11, 09:01 PM   #10
A1337STI
EJ205
 
A1337STI's Avatar
 
Join Date: Jan 2006
Location: Reno, NV
Posts: 1,840
 
Car: Impreza and an Impreza
Class: AS / CRS PerfStock
 
"pedal on the right"
Default

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 ....
__________________
Fighting uphill battles, one bullet at a time!


A1337STI is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The most important question ever. tysonK Off Topic Chat 30 2006-07-21 10:05 PM


All times are GMT -8. The time now is 08:15 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.