I have a CGI that reads an HTML file (freqently not written inhouse) up to the browser via stdout. The problem is that for the resulting page a BASE is being set to the path of the cgi that's generating the display. This is causing links on the resulting page to no longer work.
Basically...
page 1 - has links of general form "cginame?inputArgs_out.htm
"
this results in out.htm being written to the browser over stdout.
out.htm can have relative locations in it (both links, and graphics). I need for these hrefs and img tags to work.
I'd like to avoid having to read all the links and insert the appropriate base in them (i.e. find <a href='2nd.htm'> and change it to <a href='
www.dummy.com/2nd.htm'>.
Is there a way to do this?
As an aside, if I do a view source in Netscape 4.6 it appears as though a base tag has been dumped in for me.
Thnaks
<BASE HREF="www.dummy.com">
should work for you. Did you say that it's already putting a line like that in there? Did you write the cgi, or is it someone else's code, and do you have access to the cgi code?
-Josh