You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by eeadev dev <ee...@gmail.com> on 2017/10/13 09:53:07 UTC
[users@httpd] Where does ap_rprintf actually print out?
Writing an apache C module I tried this function:
https://ci.apache.org/projects/httpd/trunk/doxygen/group__APACHE__CORE__PROTO.html#ga5e91eb6ca777c9a427b2e82bf1eeb81d
but I dont know where it does print out. Does it in any specific file?
I called it this way:
ap_rprintf(r, "print out!");
and checked in the error.log nor in the access.log
Re: [users@httpd] Where does ap_rprintf actually print out?
Posted by Daniel Gruno <hu...@apache.org>.
On 10/13/2017 12:10 PM, eeadev dev wrote:
> thanks, in the console browser?
your web browser, curl or whatever you use to communicate with httpd.
It prints in the _response body of the request_.
If you do ap_rprintf(r, "Hello, wordl!") then you will see "Hello,
world!" in your browser (chrome, firefox etc) when you visit a page run
by the module.
>
> 2017-10-13 3:03 GMT-07:00 Daniel Gruno <humbedooh@apache.org
> <ma...@apache.org>>:
>
> On 10/13/2017 11:53 AM, eeadev dev wrote:
> > Writing an apache C module I tried this function:
> >
> >
> https://ci.apache.org/projects/httpd/trunk/doxygen/group__APACHE__CORE__PROTO.html#ga5e91eb6ca777c9a427b2e82bf1eeb81d
> <https://ci.apache.org/projects/httpd/trunk/doxygen/group__APACHE__CORE__PROTO.html#ga5e91eb6ca777c9a427b2e82bf1eeb81d>
> >
> > but I dont know where it does print out. Does it in any specific file?
> >
> > I called it this way:
> >
> > ap_rprintf(r, "print out!");
> > and checked in the error.log nor in the access.log
>
> it prints a formatted string to the client (browser).
>
> See http://httpd.apache.org/docs/2.4/developer/modguide.html
> <http://httpd.apache.org/docs/2.4/developer/modguide.html> for a good
> primer on getting started.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> <ma...@httpd.apache.org>
> For additional commands, e-mail: users-help@httpd.apache.org
> <ma...@httpd.apache.org>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Where does ap_rprintf actually print out?
Posted by eeadev dev <ee...@gmail.com>.
thanks, in the console browser?
2017-10-13 3:03 GMT-07:00 Daniel Gruno <hu...@apache.org>:
> On 10/13/2017 11:53 AM, eeadev dev wrote:
> > Writing an apache C module I tried this function:
> >
> > https://ci.apache.org/projects/httpd/trunk/doxygen/
> group__APACHE__CORE__PROTO.html#ga5e91eb6ca777c9a427b2e82bf1eeb81d
> >
> > but I dont know where it does print out. Does it in any specific file?
> >
> > I called it this way:
> >
> > ap_rprintf(r, "print out!");
> > and checked in the error.log nor in the access.log
>
> it prints a formatted string to the client (browser).
>
> See http://httpd.apache.org/docs/2.4/developer/modguide.html for a good
> primer on getting started.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
Re: [users@httpd] Where does ap_rprintf actually print out?
Posted by Daniel Gruno <hu...@apache.org>.
On 10/13/2017 11:53 AM, eeadev dev wrote:
> Writing an apache C module I tried this function:
>
> https://ci.apache.org/projects/httpd/trunk/doxygen/group__APACHE__CORE__PROTO.html#ga5e91eb6ca777c9a427b2e82bf1eeb81d
>
> but I dont know where it does print out. Does it in any specific file?
>
> I called it this way:
>
> ap_rprintf(r, "print out!");
> and checked in the error.log nor in the access.log
it prints a formatted string to the client (browser).
See http://httpd.apache.org/docs/2.4/developer/modguide.html for a good
primer on getting started.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org