Hi,

I have a handler module which reads the HTTP response from a remote web server.
In this module I have a

char[] buf

and it contains the bytes red using apr_socket_recv. With

ap_log_perror(APLOG_MARK, APLOG_NOTICE, 0, r->pool, apr_psprintf(r->pool, "<%s>", buf));

I can see the buf's content in the error_log but the

ap_rputs(apr_psprintf(r->pool, "%s", (char *)buf), r);

fails. How can I convert this array to a char* to be able to put the HTTP response in the handler's request using ap_rputs?

Best regards,
grafl

Reply via email to