httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Gruno <humbed...@apache.org>
Subject Re: [users@httpd] Where does ap_rprintf actually print out?
Date Fri, 13 Oct 2017 10:12:08 GMT
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
> <mailto:humbedooh@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
>     <mailto:users-unsubscribe@httpd.apache.org>
>     For additional commands, e-mail: users-help@httpd.apache.org
>     <mailto:users-help@httpd.apache.org>
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message