You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Benni Baermann <be...@obda.de> on 2005/04/08 11:24:21 UTC

Problem with http-Headers

Hi!

I updated to the newest Debian-Packages from sid and have now the
following Problem. Sorry, i dont know if it is an embperl or apache or
modperl-Problem.

The http-Headers are not in front of the file, so the browser assumes
it is a text-file and display something like this:

------------------schnipp-----------------------schnipp-----

The city (2, 0) is occupied by the Mathemagier (<a
href="command.epl?cmd=CH_STATUS&other=14">allied</a>, <a
href="command.epl?cmd=SEND_MSG&other=14">contact</a>).
It's the home town of them.<p>
Here is 1 warrior of the Mathemagier (<a
href="command.epl?cmd=BLESS_PRIEST&mob=65">bless priest</a>).
<p>
<p><a href="command.epl?cmd=PLAGUE&loc=2_0">init plague</a>
<p><a href="command.epl?cmd=CH_LUCK">change luck</a>
<p><strong>Events</strong><p>
<strong> In 11 hours, 38 minutes and 3 seconds:</strong> A warrior
finish his training.<p>HTTP/1.1 200 OK
Date: Fri, 08 Apr 2005 09:15:19 GMT
Server: Embperl/2.0rc2 Apache/2.0.53 (Debian GNU/Linux) PHP/4.3.10-10
mod_perl/1.999.21 Perl/v5.8.4
Content-Length: 106
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Content-Type: text/html; charset=ISO-8859-1

<html>
<head><link rel="stylesheet" type="text/css" href="aymargeddon.css">
</head>
<body>
</body></html>
The city (3, 0) is occupied by the Mathemagier (<a
href="command.epl?cmd=CH_STATUS&other=14">allied</a>, <a
href="command.epl?cmd=SEND_MSG&other=14">contact</a>).
<p>
Here is 1 warrior of the Mathemagier (<a
href="command.epl?cmd=BLESS_PRIEST&mob=26">bless priest</a>).
<p>

------------------schnipp-----------------------schnipp-----

The part before the headers seems to be from another call to the same
script as the part after the headers. in some other cases the browser
displays nothing, but i think it could be the same problem.

Thanks for any hint.

Benni
-- 
http://www.aymargeddon.de


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: Problem with http-Headers

Posted by Benni Baermann <be...@obda.de>.
Hi again,

some additional information:

I got the output below every second try. The output above the headers
is from the first try.

Thanks again for any hint.

Benni

On Fri, Apr 08, 2005 at 11:24:21AM +0200, Benni Baermann wrote:
> Hi!
> 
> I updated to the newest Debian-Packages from sid and have now the
> following Problem. Sorry, i dont know if it is an embperl or apache or
> modperl-Problem.
> 
> The http-Headers are not in front of the file, so the browser assumes
> it is a text-file and display something like this:
> 
> ------------------schnipp-----------------------schnipp-----
> 
> The city (2, 0) is occupied by the Mathemagier (<a
> href="command.epl?cmd=CH_STATUS&other=14">allied</a>, <a
> href="command.epl?cmd=SEND_MSG&other=14">contact</a>).
> It's the home town of them.<p>
> Here is 1 warrior of the Mathemagier (<a
> href="command.epl?cmd=BLESS_PRIEST&mob=65">bless priest</a>).
> <p>
> <p><a href="command.epl?cmd=PLAGUE&loc=2_0">init plague</a>
> <p><a href="command.epl?cmd=CH_LUCK">change luck</a>
> <p><strong>Events</strong><p>
> <strong> In 11 hours, 38 minutes and 3 seconds:</strong> A warrior
> finish his training.<p>HTTP/1.1 200 OK
> Date: Fri, 08 Apr 2005 09:15:19 GMT
> Server: Embperl/2.0rc2 Apache/2.0.53 (Debian GNU/Linux) PHP/4.3.10-10
> mod_perl/1.999.21 Perl/v5.8.4
> Content-Length: 106
> Keep-Alive: timeout=15, max=99
> Connection: Keep-Alive
> Content-Type: text/html; charset=ISO-8859-1
> 
> <html>
> <head><link rel="stylesheet" type="text/css" href="aymargeddon.css">
> </head>
> <body>
> </body></html>
> The city (3, 0) is occupied by the Mathemagier (<a
> href="command.epl?cmd=CH_STATUS&other=14">allied</a>, <a
> href="command.epl?cmd=SEND_MSG&other=14">contact</a>).
> <p>
> Here is 1 warrior of the Mathemagier (<a
> href="command.epl?cmd=BLESS_PRIEST&mob=26">bless priest</a>).
> <p>
> 
> ------------------schnipp-----------------------schnipp-----
> 
> The part before the headers seems to be from another call to the same
> script as the part after the headers. in some other cases the browser
> displays nothing, but i think it could be the same problem.
> 
> Thanks for any hint.
> 
> Benni
> -- 
> http://www.aymargeddon.de
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org

-- 
http://www.aymargeddon.de


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: Problem with http-Headers

Posted by Benni Baermann <be...@obda.de>.
On Mon, Apr 11, 2005 at 04:14:59PM +0200, Benni Baermann wrote:
> Oh. Did this change recently? Before the update it works fine with
> plain print. It works a bit better now, but stil not as before the
> update: The headers are right now, but it looks like
> it is still displying html as text (the browserinfo shows text/html as
> content-type). Is there anything wrong with using html-markup in
> print?

Found it. I should set Embperl_Escmode to 0 in Apaches config.

Thanks again for help!

Benni
-- 
http://www.aymargeddon.de


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: Problem with http-Headers

Posted by Benni Baermann <be...@obda.de>.
On Mon, Apr 11, 2005 at 06:02:24AM +0200, Gerald Richter wrote:
> > The http-Headers are not in front of the file, so the browser 
> > assumes it is a text-file and display something like this:
> > 
> 
> It looks like that you are using print inside your Embperl pages. If you use
> print, you should replace it with 
> 
> print OUT "xxx" ;

Oh. Did this change recently? Before the update it works fine with
plain print. It works a bit better now, but stil not as before the
update: The headers are right now, but it looks like
it is still displying html as text (the browserinfo shows text/html as
content-type). Is there anything wrong with using html-markup in
print?

Thanks!

Any hints again?

Benni
-- 
http://www.aymargeddon.de


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


RE: Problem with http-Headers

Posted by Gerald Richter <ri...@ecos.de>.
Hi,

> 
> I updated to the newest Debian-Packages from sid and have now 
> the following Problem. Sorry, i dont know if it is an embperl 
> or apache or modperl-Problem.
> 
> The http-Headers are not in front of the file, so the browser 
> assumes it is a text-file and display something like this:
> 

It looks like that you are using print inside your Embperl pages. If you use
print, you should replace it with 

print OUT "xxx" ;

Gerald



> ------------------schnipp-----------------------schnipp-----
> 
> The city (2, 0) is occupied by the Mathemagier (<a 
> href="command.epl?cmd=CH_STATUS&other=14">allied</a>, <a 
> href="command.epl?cmd=SEND_MSG&other=14">contact</a>).
> It's the home town of them.<p>
> Here is 1 warrior of the Mathemagier (<a 
> href="command.epl?cmd=BLESS_PRIEST&mob=65">bless priest</a>).
> <p>
> <p><a href="command.epl?cmd=PLAGUE&loc=2_0">init plague</a> 
> <p><a href="command.epl?cmd=CH_LUCK">change luck</a> 
> <p><strong>Events</strong><p> <strong> In 11 hours, 38 
> minutes and 3 seconds:</strong> A warrior finish his 
> training.<p>HTTP/1.1 200 OK
> Date: Fri, 08 Apr 2005 09:15:19 GMT
> Server: Embperl/2.0rc2 Apache/2.0.53 (Debian GNU/Linux) PHP/4.3.10-10
> mod_perl/1.999.21 Perl/v5.8.4
> Content-Length: 106
> Keep-Alive: timeout=15, max=99
> Connection: Keep-Alive
> Content-Type: text/html; charset=ISO-8859-1
> 
> <html>
> <head><link rel="stylesheet" type="text/css" 
> href="aymargeddon.css"> </head> <body> </body></html> The 
> city (3, 0) is occupied by the Mathemagier (<a 
> href="command.epl?cmd=CH_STATUS&other=14">allied</a>, <a 
> href="command.epl?cmd=SEND_MSG&other=14">contact</a>).
> <p>
> Here is 1 warrior of the Mathemagier (<a 
> href="command.epl?cmd=BLESS_PRIEST&mob=26">bless priest</a>).
> <p>
> 
> ------------------schnipp-----------------------schnipp-----
> 
> The part before the headers seems to be from another call to 
> the same script as the part after the headers. in some other 
> cases the browser displays nothing, but i think it could be 
> the same problem.
> 
> Thanks for any hint.
> 
> Benni
> --
> http://www.aymargeddon.de
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org