Re: Source Code Shows Up in IE But Not Netscape

2000-05-15 Thread Keith G. Murphy

Bri Carey wrote:
[cut]
> 
> You can see this now at http://www.uncricket.com/index1.html
> 
I don't know if you're still having this problem, but when I look at it,
I don't even see an  tag, which doesn't seem to bother Netscape
too much, but...



Re: Source Code Shows Up in IE But Not Netscape

2000-05-12 Thread Doug MacEachern

On Wed, 10 May 2000, Bri Carey wrote:

> I realize that this is not an ePerl forum, but since ePerl runs as part of 
> mod_perl, I thought it couldn't hurt to at least ask here.
> 
> I must be missing something obvious.
> 
> I've installed Apache::ePerl.
> 
> I've configured httpd.conf according to the instructions:
> 
> 
> Options +ExecCGI
> SetHandler perl-script
> PerlHandler Apache::ePerl
> 
> 
> When I display an .iphtml page in Netscape, everything seems to be fine.
> 
> When I display it in IE (4.72), I get a plain text output of the source
> code, including html tags.
> 
> Why this discrepancy?

sounds like an http headers problem.  what do you see with a telnet
request?  probably not a complete set of httpd headers, try adding:
PerlSendHeader On
in your config




Re: Source Code Shows Up in IE But Not Netscape

2000-05-11 Thread w trillich

> Bri Carey wrote:
> 
> > > > When I display an .iphtml page in Netscape, everything seems to be fine.
> > > >
> > > > When I display it in IE (4.72), I get a plain text output of the source
> > > > code, including html tags.
> > > >
> > > > Why this discrepancy?
> >
> > I've tried setting the default type to text/html in the httpd.conf file and
> > that didn't seem to do the trick.
> >
> > I appreciate the input that I've received.
> >
> > I've also noticed that both browsers display the code, although they format
> > the html properly, when I try to execute the script inside of a standard
> > .html document.  I know that's not the standard (embedded Perl should have
> > .iphtml extensions - at least that's the way it seems to be).  Yes, I have
> > made the appropriate changes in the httpd.conf file:
> >
> > PerlModule Apache::ePerl
> >
> >Options +ExecCGI
> >SetHandler  perl-script
> >PerlHandler Apache::ePerl
> >
> >
> > You can see this now at http://www.uncricket.com/index1.html
> >
> > Thanks again for any input.
> >
> > Regards,
> > Bri

even though cliff said:
>I don't think you are using the Files directive properly.
>Try something like this:
>
>   
> 
>   SetHandler  perl-script
>   PerlHandler Apache::ePerl
>   Options +ExecCGI
> 
>   
and he's probaly got something there--but if netscape is
getting eperl-processed html and explorer is getting the
source to the perl-bristled code, there's something very
odd going on there.

whether you use lynx or opera or icab, the browser should
get what the server sends out, and -- UNLESS you have 
browser-specific settings somewhere -- they should ALL
receive the exact same stuff.

i.e. if you turn off eperl, then everyone will see the
perl that bristles throughout your html. if it's on
and working, then all browsers will get the resulting 
html markup.

...unless you have some browser-specific gizmo happening,
which (if my fading gray cells are working) is possible
in apache.


[as a security measure, to hide the inner workings of our
website, we use .htaccess frequently to enable eperl here
and there while letting the user think everything is just
a plain old html file, as in:
# .htaccess settings file:

SetHandler perl-script
PerlHandler Apache::ePerl
Options +ExecCGI

hopefully this will make it more difficult for black-hatted
sniffers to know what's happening behind the scenes... 
now if we could only get apache to not identify itself 
in the "Server:" header...]



Re: Source Code Shows Up in IE But Not Netscape

2000-05-10 Thread Billy Donahue

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 10 May 2000, Bri Carey wrote:

> Date: Wed, 10 May 2000 05:26:52 PDT
> From: Bri Carey <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Source Code Shows Up in IE But Not Netscape
> 
> I realize that this is not an ePerl forum, but since ePerl runs as part of 
> mod_perl, I thought it couldn't hurt to at least ask here.
> 
> I must be missing something obvious.
> 
> I've installed Apache::ePerl.
> 
> I've configured httpd.conf according to the instructions:
> 
> 
> Options +ExecCGI
> SetHandler perl-script
> PerlHandler Apache::ePerl
> 
> 
> When I display an .iphtml page in Netscape, everything seems to be fine.
> 
> When I display it in IE (4.72), I get a plain text output of the source
> code, including html tags.
> 
> Why this discrepancy?

IE quite brilliantly ignores the MIME type specified in the header
in some cases... If you send IE a Content-Type: text/plain 
document that happens to begin with  then it will render it
as HTML... This sounds like a related problem, but with the opposite effect:
that is to say, it's now NOT rendering when it should be.

- --
"The Funk, the whole Funk, and nothing but the Funk."
Billy Donahue 
http://dadadada.net
GnuPG Key ID: 0219745D Billy Donahue <[EMAIL PROTECTED]>
Fingerprint: 869A 2453 36F4 09BA 1D83  1839 FB65 6FA7 0219 745D
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: Made with pgp4pine 1.75

iD8DBQE5GVbJ+2VvpwIZdF0RAoLwAJ9zTrqLcTI5RxC3jyA37r5EuCm4xgCggvKY
GJ56MsQ704UE6F1E31fzaYo=
=zfpG
-END PGP SIGNATURE-





Re: Source Code Shows Up in IE But Not Netscape

2000-05-10 Thread ___cliff rayman___

I don't think you are using the Files directive properly.
It seems to have some Directory information as well as Files information.

Try something like this:


  
SetHandler  perl-script
PerlHandler Apache::ePerl
Options +ExecCGI
  


Bri Carey wrote:

> > > When I display an .iphtml page in Netscape, everything seems to be fine.
> > >
> > > When I display it in IE (4.72), I get a plain text output of the source
> > > code, including html tags.
> > >
> > > Why this discrepancy?
> >
> >IE quite brilliantly ignores the MIME type specified in the header
> >in some cases... If you send IE a Content-Type: text/plain
> >document that happens to begin with  then it will render it
> >as HTML... This sounds like a related problem, but with the opposite
> >effect:
> >that is to say, it's now NOT rendering when it should be.
>
> I've tried setting the default type to text/html in the httpd.conf file and
> that didn't seem to do the trick.
>
> I appreciate the input that I've received.
>
> I've also noticed that both browsers display the code, although they format
> the html properly, when I try to execute the script inside of a standard
> .html document.  I know that's not the standard (embedded Perl should have
> .iphtml extensions - at least that's the way it seems to be).  Yes, I have
> made the appropriate changes in the httpd.conf file:
>
> PerlModule Apache::ePerl
>
>Options +ExecCGI
>SetHandler  perl-script
>PerlHandler Apache::ePerl
>
>
> You can see this now at http://www.uncricket.com/index1.html
>
> Thanks again for any input.
>
> Regards,
> Bri
> 
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

--
___cliff [EMAIL PROTECTED]





Re: Source Code Shows Up in IE But Not Netscape

2000-05-10 Thread Bri Carey

> > When I display an .iphtml page in Netscape, everything seems to be fine.
> >
> > When I display it in IE (4.72), I get a plain text output of the source
> > code, including html tags.
> >
> > Why this discrepancy?
>
>IE quite brilliantly ignores the MIME type specified in the header
>in some cases... If you send IE a Content-Type: text/plain
>document that happens to begin with  then it will render it
>as HTML... This sounds like a related problem, but with the opposite 
>effect:
>that is to say, it's now NOT rendering when it should be.

I've tried setting the default type to text/html in the httpd.conf file and 
that didn't seem to do the trick.

I appreciate the input that I've received.

I've also noticed that both browsers display the code, although they format 
the html properly, when I try to execute the script inside of a standard 
.html document.  I know that's not the standard (embedded Perl should have 
.iphtml extensions - at least that's the way it seems to be).  Yes, I have 
made the appropriate changes in the httpd.conf file:

PerlModule Apache::ePerl
   
   Options +ExecCGI
   SetHandler  perl-script
   PerlHandler Apache::ePerl
   

You can see this now at http://www.uncricket.com/index1.html

Thanks again for any input.

Regards,
Bri

Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com




Re: Source Code Shows Up in IE But Not Netscape

2000-05-10 Thread remco

On Wed, 10 May 2000, Bri Carey wrote:

Hi

> I realize that this is not an ePerl forum, but since ePerl runs as part of 
> mod_perl, I thought it couldn't hurt to at least ask here.
> 
> I must be missing something obvious.
> 
> I've installed Apache::ePerl.
> 
> I've configured httpd.conf according to the instructions:
> 
> 
> Options +ExecCGI
> SetHandler perl-script
> PerlHandler Apache::ePerl
> 
> 
> When I display an .iphtml page in Netscape, everything seems to be fine.
> 
> When I display it in IE (4.72), I get a plain text output of the source
> code, including html tags.
> 
> Why this discrepancy?

Probabaly because IE looks after yor extension instead of your
content-type (if you have any...)
try setting the type ".iphtml" for IE in your registry, this should prove
it...
you will have to use another extension for your files if this is true

> Regards,
> Bri
> 
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
> 

Bye,
remco

/--\
| Remco Schaar |
| e-mail: [EMAIL PROTECTED]  |
\--/

South Park meets Linux:
- "Oh my God, they killed init!"
- "You bastards!"