CGIs returning EMBED tags
Posted on 1997-04-06
Might as well try here I guess...nobody else seems to know!
System: Enterprise server 2.01, running under Solaris 2.5
I'm generating an HTML file using a vanilla-standard CGI C program, which includes an EMBED tag. When I run this, browsing using Navigator 3.0 running under W95, the browser trys to launch PLAY32.EXE to run the file, rather than using the correct plug-in (in this case Quicktime). If I simply copy the HTML from the browser source window, and re-load that, from the server, not locally, everything works fine.
This leads me to think that there's one of two things wrong: first, maybe I need to do something clever with the http header, although inspecting the header in the non-CGI version through telnet, I can't see anything particularly clever. Secondly, perhaps I need to parse the HTML explicitly or something, but I don't know how.
I've tried to find some form of technical note which explains how the EMBED tag is handled on the server side, but no luck yet.
So if anybody has any suggestions for me, i would love to hear them.