[Info-vax] OSU server and scripts

Phillip Helbig---undress to reply helbig at astro.multiCLOTHESvax.de
Sat Oct 12 12:39:00 EDT 2013


In article <l3btfg$a1b$1 at online.de>, helbig at astro.multiCLOTHESvax.de
(Phillip Helbig---undress to reply) writes: 

> I have a test script which generates some output as expected.  It starts 
> off with 
> 
>    $ crlf = f$fao("!/")
> 
> If I change this to 
> 
>    $ crlf = ""
> 
> then the output is identical, except that the first few lines of output 
> are missing.  (When looking at the source, as expected the first 
> generates extra blank lines between the output lines, but as these are 
> ignored in HTML the HTML output looks the same.)

OK.  The first output is

$ write net_link "content-type: text/html",crlf

and if crlf is an empty string, then this is not on a line by itself.  
When crlf is defined as in the first example above, then the first 
output is on a line by itself, and things do work.  Alternatively, I can 
define crlf to an emtpy string and then write an explicit empty line 
after the first output and again it works.  So far, so good.  But 
consider the following:

This works:

   $ crlf = ""
   $ write net_link "<DNETRECMODE2>"
   $ cgi_symbols
   $ write net_link "content-type: text/html",crlf
   $ write net_link "x1: dd AA",crlf ! <---------------------------------

At least it works in that everything after a later

   $ write net_link ""

is output.  However, if I replace the marked line with any of the three 
following lines, I get "-ERROR-(500):  Invalid header seen".

   $ write net_link "<BR>",crlf

   $ write net_link "test 1",crlf

   $ write net_link "test 2",crlf

Note that the "x1: dd AA" is just some random string.  In this case, the 
output from this line is not seen, but output after a later empty line 
is.  If it is replaced with any of the three above examples, then I get 
an error.  Why is "x1: dd AA" different from "test 1".  Or, perhaps more 
exactly, why is "content-type: text/htmlx1: dd AA" different from
"content-type: text/htmltest 1"?




More information about the Info-vax mailing list