× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: eRPG question
  • From: Scott Klement <klemscot@xxxxxxxxxxxx>
  • Date: Mon, 22 Jan 2001 16:50:31 -0600 (CST)


Jim,

On my Unix machine, apache installs a file called "mime.types" in
/usr/local/etc/apache   (on your system, it might be somewhere else...
look around)

anyway, the file called mime.types  contains entries that look like this:

application/zip                 zip
audio/mpeg                      mpga mp2 mp3

so when it sees a ".zip" it sets the MIME type to "application/zip", when
it sees a ".mp2, .mp3 or .mpga" it sets the MIME type to "audio/mpeg"

Most likely, the default settings have been adequate for your purposes,
and you never realized that you needed to set the MIME type.  I know that
when I put a .savf on my web site, I needed to change the MIME types
because it didn't know what to do with a .savf.



On Mon, 22 Jan 2001, Jim Langston wrote:

> Hans,
> 
> I've created a few web pages served by both Windows NT and Unix,
> and create links for files to be downloaded and everything works
> fine without me, in my web page, specifying a MIME type.
> 
> Is this handled by the server automatically?  And does the AS/400
> have to be setup manually to do this?  
> 
> I just don't understand.
> 
> Regards,
> 
> Jim Langston
> 
> boldt@ca.ibm.com wrote:
> > 
> > Jim wrote:
> > >Well, all you have to do is provide a web page with a link to
> > >the file you want them to be able to download.  Then when they
> > >click on this, you serve them that "page" which is actually the
> > >file to download.
> > >
> > >Their browser will then ask them where they want to save the file.
> > 
> > Fine so far.  Just link to the file using the "anchor" tag.
> > 
> > >Browsers look at the extension of files to determine what to do
> > >with them, display them as .HTM or HTML files, run or save them as
> > >.EXE or .ZIP files, play them as media files, etc...
> > 
> > No.  Browsers look at the MIME type, not the file extension.
> > (IE, however, violates the HTTP standards and often insists on
> > rendering data based on content or file extension regardless of
> > MIME type.)
> > 
> > >You really don't need to worry about that, just serve them the object,
> > >the file, and their browser will take care of the rest.
> > 
> > You may have to configure the server to present the proper MIME
> > type in the HTTP header, though.  Be sure to test using Netscape.
> > Since IE isn't totally compliant to the standards, you can't use
> > it to tell if you're doing things properly.
> > 
> > Hans
> > 
> > Hans Boldt, ILE RPG Development, IBM Toronto Lab, boldt@ca.ibm.com
> +---
> | This is the RPG/400 Mailing List!
> | To submit a new message, send your mail to RPG400-L@midrange.com.
> | To subscribe to this list send email to RPG400-L-SUB@midrange.com.
> | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator: david@midrange.com
> +---
> 

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.