parsing on all text/html output?

parsing on all text/html output?

Post by kid » Wed, 30 Jun 1999 04:00:00



Hi,

Can anybody tell me where I can find a free source to modified
apache source which will allow me to parse ALL text/html output
from the Apache server?

Just like hypermart and virtualave parses the output of all html files
and cgi files (actually all content which is text/html).

thank you.

 
 
 

parsing on all text/html output?

Post by Rasmus Lerdo » Wed, 30 Jun 1999 04:00:00



>Can anybody tell me where I can find a free source to modified
>apache source which will allow me to parse ALL text/html output
>from the Apache server?

Parse how?  The standard way to do something to given mime types
is to write an Apache module that gets triggered by that mime
type.  See the sources for mod_php for an example.  The code that
may be of interest to you is here:

  http://lxr.php.net/source/mod_php3.c

-Rasmus

 
 
 

parsing on all text/html output?

Post by Faisal Nasi » Thu, 01 Jul 1999 04:00:00




> >Can anybody tell me where I can find a free source to modified
> >apache source which will allow me to parse ALL text/html output
> >from the Apache server?

> Parse how?  The standard way to do something to given mime types
> is to write an Apache module that gets triggered by that mime
> type.  See the sources for mod_php for an example.  The code that
> may be of interest to you is here:

>   http://lxr.php.net/source/mod_php3.c

> -Rasmus

I would like to to scan any text/html output produced by the server
and replace stuff in it (such as add banners, like hypermart and
virtual avenue). I have already tried mod_perl, but it didn't support
this, and said, it will implemented in Apache 2.0.

Do you have an ideas how to do that? (I know you have modify
the Apache source to achive this!)

 
 
 

parsing on all text/html output?

Post by Rasmus Lerdo » Thu, 01 Jul 1999 04:00:00


Quote:>I would like to to scan any text/html output produced by the server
>and replace stuff in it (such as add banners, like hypermart and
>virtual avenue). I have already tried mod_perl, but it didn't support
>this, and said, it will implemented in Apache 2.0.

>Do you have an ideas how to do that? (I know you have modify
>the Apache source to achive this!)

Like I said, write a module.  That's exactly what mod_php
(which I pointed you at) does.  It replaces <?...?> blocks
in files with something and sends the result.

-Rasmus

 
 
 

1. Serving text/x-server-parsed-html not text/html

Currently I am running the cross-breed Sun server that came with a
Netra 2.0 box (Solaris 2.4). This is a  NCSA 1.3 with a bit of Apache
(vurtual hosts and a bit of security) thrown in.

I wan to upgrade to NCSA 1.5.1 or Apache 1.0.?

I have downloaded the source and precompiled binaries for both.  When
I configure it and put it up running on port 8080, when I ask for a
document - I get a message from netscape saying
"... text/x-server-parsed-html ..Configure viewer?"

The only mention of text/x-server... in the source is the
INCLUDES_MAGIC_TYPE

Why would the servers be doing this?

Check it out for yourself at http://www.domino.com:8080


be bounced.

Thanks in advance

Matt Westby

2. Daylight Saving Time policy

3. CGI outputting text/x-server-parsed-html?

4. no X server extension mbx (loadMbx) with AIX4.3?

5. /index.html return text/x-server-parsed-html?

6. LinuxPPC security

7. Output from cgi scripts displaying as text not html formatted text

8. vi editor FAQ (Frequently Asked Question List), Part 1/2

9. Parsing text from HTML

10. parse html output

11. NCSA: generating text/x-server-parsed-html (from CGI)

12. Include Problem, Content-type: text/x-server-parsed-html (Apache/NCSA)

13. Apache 1.2b6 - CGI HTML output being handled as text.