You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Laszlo <gr...@axis.hu> on 2005/01/10 11:21:34 UTC
module example wanted
Hi all,
Having access to a request_rec *r (ex. http://abc.hu/myapp/abc.xyz),
how can I read the content of abc.xyz (wich contains only XML data)
and generating a response (wich contains only HTML).
Thank you in advance.
---------------------------------------------------------------------------
Laszlo Graf
Re: module example wanted
Posted by Laszlo <gr...@axis.hu>.
Nick Kew wrote:
> On Mon, 10 Jan 2005, Laszlo wrote:
>
>
>>Having access to a request_rec *r (ex. http://abc.hu/myapp/abc.xyz),
>>how can I read the content of abc.xyz (wich contains only XML data)
>>and generating a response (wich contains only HTML).
>
>
> You probably want the apache-modules list for this. What you want is
> a filter module. There are several for processing markup at
> http://apache.webthing.com/ , as well as tutorials at
> http://www.apachetutor.org/ .
>
> /end shameless self-promotion:-)
>
> Your other question should be in a user support forum, and the answer
> is AddHandler.
>
Could you send me an example C file?
Re: module example wanted
Posted by Nick Kew <ni...@webthing.com>.
On Mon, 10 Jan 2005, Laszlo wrote:
> Having access to a request_rec *r (ex. http://abc.hu/myapp/abc.xyz),
> how can I read the content of abc.xyz (wich contains only XML data)
> and generating a response (wich contains only HTML).
You probably want the apache-modules list for this. What you want is
a filter module. There are several for processing markup at
http://apache.webthing.com/ , as well as tutorials at
http://www.apachetutor.org/ .
/end shameless self-promotion:-)
Your other question should be in a user support forum, and the answer
is AddHandler.
--
Nick Kew
Re: module example wanted
Posted by Laszlo <gr...@axis.hu>.
Laszlo wrote:
> Hi all,
>
> Having access to a request_rec *r (ex. http://abc.hu/myapp/abc.xyz),
> how can I read the content of abc.xyz (wich contains only XML data)
> and generating a response (wich contains only HTML).
>
> Thank you in advance.
> ---------------------------------------------------------------------------
> Laszlo Graf
>
>
And a second question:
How can I set the httpd server to invoke my mod_xyz
module for files with extension .xyz only?