http - Apache C module how to send response to client -


i have written apache module handles receiving file client. want send response client. want response contain string representing file path file sent module. since new writing apache modules unsure whether there response struct of sort need use or if need in request_rec passed handler. noticed ap_rprintf sends data client. should use that? , if so, how sent client (i.e. how can client extract string things sent it)?

thanks!

edit: stumbled across apr_socket_send() don't know if works in case. request_rec stores connection, create socket client , send data way?

have checked out source code mod_example?

basically:

r->content_type = "text/html"; ap_send_http_header(r); ap_rputs(doctype_html_3_2, r); ap_rputs("<html>\n", r); ... ap_rprintf(r, "stuff want send in body"); ... 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

java - Using an Integer ArrayList in Android -