Figured out part of my problem.  Apparently the websites I visit
have *changed* their protocol.  When I move the cursor over an
URL, what shows up on the Mozilla status line is a filename ending
in foobar.mid.  But when I click on that URL, what actually gets
invoked is a server script which has the effect of emitting the
.mid file.  So when I press <enter> before clicking, what gets
downloaded is the __script__ and not the data from foobar.mid.

What this means is that if nowadays I have a MIDI plugin, I can
only *listen* (if the plugin worked) to MIDI "files" as described
above.  If I click, the plugin intercepts the received data.  If I
try to <shift>-click (to download instead), what gets stored on my
disk is the html/Javascript script instead of the foobar.mid data !!

My guess is that without the plugin, what I see is a function of
the rapidity of the http handshakes between my system and the
server.  To explain my random results, I'm imagining that if the
download_protocol_handshake completes before the server finishes
sending out the script, what gets saved by the download is the
script.  Whereas if the protocol handshake completes *after* the
server has finished sending out the script, what gets saved by
the download is the data from the MIDI file itself !!!


mikus   (bah on banners)  (bah on the RIAA)


p.s.  If the URL actually "activates" a cgi script or something,
      __why__ does Mozilla show a line ending in  foobar.mid  on
      its status bar ?

      downloads.rdf stored the following line:
      <NC:URL 
resource="http://www.classicalmidiconnection.com/cgibin/x.cgi/midi/n3/netopyr.mid"/>


pps.  Now I'm beginning to wonder -- how come that little empty
      window was displaying on my screen?  Does the following
      describe what might be happening ?

       -  Mozilla sends a 'download request' to the server

       -  The server supplies a 'pseudo-page' to Mozilla

       -  Mozilla displays the 'pseudo-page' -- empty ,
          __and__ executes the Javascript contained therein

       -  The server sends foobar.mid following the 'pseudo-page'

       -  I don't know Javascript -- I can't figure out whether
          or not a form is sent from my system to the server


      Here is what was stored on my disk as 'netopyr.mid.html',
      when I clicked on the 'netopyr.mid' URL.  (This is at
      http://www.classicalmidiconnection.com - I think the
      'Romantic' page - composer Johann Strauss - composition
      'Fledermaus Overture'.)

      [Note that the name of the MIDI file does __not__ appear
      on the 'pseudo-page'.  Also -- I have specified to Mozilla
      __not__ to open any unsolicited windows.]


<HTML>
<HEAD>
<TITLE>MIDIWORLD</TITLE>
<META name="description" content="midi files of classical, jazz and original music.">
<META name="keywords" content="midi, midi file, music, multimedia, synthesizer, 
soundcard, sequence, gm, mid,
keyboard, sampler, sound, patch, sequencer, composer, composing, classical music, 
jazz, original composition,
midi forum, electronic music, musical instrument, musical instrument dealer, bach, 
mozart, beethoven">

<!--midi files from : Albinoni, Bach, Bartok, Beethoven, Berlioz, Brahms, Chopin, 
Debussy, Dvorak, Elgar, Faure, Grieg, Handel, Haydn, Ibert, Janacek,
Khachaturian, Liszt, Mendelssohn, Mozart, Mussorgsky, Newberry, Orff, Prokofiev, 
Rachmaninov, Ravel, Schumann, Scriabin, Shostakovich, Tchaikovsky,
Villa-Lobos, Vivaldi, Wagner, Weber, Widor, and many more...-->
<script language="javascript">

<!-- hide

function newGo(box) {
if ((-1 < box.selectedIndex) && 
(box.options[box.selectedIndex].value.lastIndexOf('ap.org') != -1)) {
        document.forms[0].action = box.options[box.selectedIndex].value;
        document.forms[0].submit();
        return true;
        }
if ((-1 < box.selectedIndex) && (box.options[box.selectedIndex].value != 'nil')) {
        val = box.options[box.selectedIndex].value;
        if (val.lastIndexOf(',') != -1) {
                window.open ((val.substring(0,val.lastIndexOf(","))), 
(val.substring((val.lastIndexOf(",")+1) , val.length)));
        } else {
                window.open (val,'_top');
                }
        }
        return true;
}

function openMe(url) {
   self.location = url;
}

// end hide -->

</script>

</HEAD>
<BODY BGCOLOR="#000000" BACKGROUND="px/bg.jpg" TEXT="#AADDAA" LINK="#FFCC66" 
VLINK="#CC9933" ALINK="#FFAA00">
<FONT FACE="comic sans ms,ARIAL,HELVETICA">
<CENTER>

<A HREF="http://midiworld.com"; TARGET="_top"><IMG SRC="px/mw_map.gif" WIDTH="520" 
HEIGHT="42" BORDER=0></A>
<BR>
<font size="1" color="#400000">midi files</font><br>

<!--BANNER-->

<a href="http://www.cdbm.com/shop/search.cgi?keyword=yes"; TARGET="_top"><img 
src="midistor.gif" border="0" alt="The MIDI-Store is Open !"></a>

<BR><BR><BR>
<A HREF="http://midiworld.com"; TARGET="_top"><IMG SRC="px/mwlog1.jpg" BORDER=0></A>

<BR><BR><BR>

<A HREF="http://www.cdbm.com/shop/search.cgi?keyword=adventus"; TARGET="_top">
<img src="http://midiworld.com/ad/mw/pianosuite1.jpg"; width="468" height="60" 
border="2" alt="Piano Suite - Complete Learning System !"></a>
<BR><BR>

<HR WIDTH="300">

<FONT SIZE="2"> Copyright &copy; 1995-2001 <A HREF="http://midiworld.com/mw_cont.htm"; 
TARGET="_top">
<IMG SRC="px/mw1.jpg" BORDER="0" ALIGN="ABSMIDDLE" ALT="MIDIWORLD"></A> All rights 
reserved</FONT>
<BR>
<HR WIDTH="500">
</CENTER>
<BR><BR>
<FONT SIZE="1">
<P ALIGN="RIGHT">
<!--#exec cgi="counter/counter.cgi"-->
</P>
</FONT>
<!--END COUNTER---------------------------------->

</BODY>
</HTML>


Reply via email to