I'm an idiot and need help with web page hosting
#23
ldw,Oct 6 2004, 10:33 AM Wrote:It all depends on how the server deals with the apparent extension of the file, and if the server doesn't supply much of the how-to then the browser will try to deduce what to do with the file. Save dialogue is initiated for extensions for which it makes sense to save the file (the browser has a set of defaults for these too). 

You are correct you can make up a script that just overrides the file type decision making by setting: 'Content-type' header.
Following which a stream of data forming the file can be just shoved into the HTTP open stream. The browser will deal with it.
More info here.
[right][snapback]57151[/snapback][/right]

Thanks for confirming, and the extra information.

Cheers,

Munk
Reply


Messages In This Thread
I'm an idiot and need help with web page hosting - by Guest - 10-03-2004, 11:33 PM
I'm an idiot and need help with web page hosting - by Guest - 10-05-2004, 03:11 AM
I'm an idiot and need help with web page hosting - by Guest - 10-05-2004, 10:26 PM
I'm an idiot and need help with web page hosting - by Munkay - 10-06-2004, 03:47 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)