1. EUPHORIA CGI - Good HTML?

I'm using this program to test output with Apache 2. It ain't workin'... 
but I don't know why. Does anybody know? Thanks. :)

-- end of test.exw
sequence result

    result = "Content-Type: text/html\n\n"
    result = "<html><head>Testfile</head><body>Testing one two 

    puts(1,result)
   
-- end of test.exw

My httpd-errors.log file says, "Premature end of script headers: 
test.esp." :/

new topic     » topic index » view message » categorize

2. Re: EUPHORIA CGI - Good HTML?

On Sunday 19 October 2003 03:41 pm, you wrote:
>
>
> I'm using this program to test output with Apache 2. It ain't workin'...
> but I don't know why. Does anybody know? Thanks. :)
>
> -- end of test.exw
> sequence result
>
>     result = "Content-Type: text/html\n\n"
>     result = "<html><head>Testfile</head><body>Testing one two
>
>     puts(1,result)
>
> -- end of test.exw
>
> My httpd-errors.log file says, "Premature end of script headers:
> test.esp." :/

I'm not sure, and can't check, because I no longer have Windows, but 
shouldn't  you be using ex, rather than exw? You don't need a dos window 
to be opened. 
You might also try "Content-type: text/HTML\n\n"   -- don't know if the case 
or space after the : matters.
Have you checked for an ex.err file? The "Premature end... " message usually 
means euphoria has halted before finishing the job, which can be caused by 
most any euphoria error.

Irv

new topic     » goto parent     » topic index » view message » categorize

3. Re: EUPHORIA CGI - Good HTML?

Irv wrote:

>>I'm using this program to test output with Apache 2. It ain't workin'...
>>but I don't know why. Does anybody know? Thanks. :)
>>
>>-- end of test.exw
>>sequence result
>>
>>    result = "Content-Type: text/html\n\n"
>>    result = "<html><head>Testfile</head><body>Testing one two
>>
>>    puts(1,result)
>>
>>-- end of test.exw
>>
>>My httpd-errors.log file says, "Premature end of script headers:
>>test.esp." :/
>>    
>>
>I'm not sure, and can't check, because I no longer have Windows, but 
>shouldn't  you be using ex, rather than exw? You don't need a dos window 
>to be opened. 
>
That's funny. I'm actually using exu, so that's just a typo. :/

new topic     » goto parent     » topic index » view message » categorize

4. Re: EUPHORIA CGI - Good HTML?

Perhaps your server requires a CONTENT-LENGTH be assigned...?

Euman


----- Original Message ----- 
From: "C. K. Lester" <euphoric at cklester.com>
To: <EUforum at topica.com>
Subject: EUPHORIA CGI - Good HTML?


> 
> 
> I'm using this program to test output with Apache 2. It ain't workin'... 
> but I don't know why. Does anybody know? Thanks. :)
> 
> -- end of test.exw
> sequence result
> 
>     result = "Content-Type: text/html\n\n"
>     result = "<html><head>Testfile</head><body>Testing one two 
> 
>     puts(1,result)
>    
> -- end of test.exw
> 
> My httpd-errors.log file says, "Premature end of script headers: 
> test.esp." :/
> 
> --^----------------------------------------------------------------
> This email was sent to: euman at bellsouth.net
> 
> EASY UNSUBSCRIBE click here: http://topica.com/u/?b1dd66.b3n6Lc.ZXVtYW5A
> Or send an email to: EUforum-unsubscribe at topica.com
> 
> TOPICA - Start your own email discussion group. FREE!
> http://www.topica.com/partner/tag02/create/index2.html
> --^----------------------------------------------------------------
> 
>

new topic     » goto parent     » topic index » view message » categorize

5. Re: EUPHORIA CGI - Good HTML?

On Sun, 19 Oct 2003 10:41:45 -0500, "C. K. Lester"
<euphoric at cklester.com> wrote:

>    result = "Content-Type: text/html\n\n"
>    result = "<html><head>Testfile</head><body>Testing one two 

Don't you need to, like, concatenate those rather than just overwrite
the first bit with the second?

Pete

new topic     » goto parent     » topic index » view message » categorize

6. Re: EUPHORIA CGI - Good HTML?

Should be
result = "Content-Type: text/html\n\n" & -- LOOK AT THIS
result = "<html><head>Testfile</head><body>Testing one two 

C. K. Lester wrote:
> ============ The Euphoria Mailing List ============
> 
> I'm using this program to test output with Apache 2. It ain't workin'... 
> but I don't know why. Does anybody know? Thanks. :)
> 
> -- end of test.exw
> sequence result
> 
>    result = "Content-Type: text/html\n\n"
>    result = "<html><head>Testfile</head><body>Testing one two 
> 
>    puts(1,result)
>   -- end of test.exw
> 
> My httpd-errors.log file says, "Premature end of script headers: 
> test.esp." :/

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu