apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graf László <gr...@datatrans.hu>
Subject How to convert char[] to char*?
Date Mon, 27 May 2013 20:21:53 GMT

I have a handler module which reads the HTTP response from a remote web 
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,

View raw message