The buffers are only valid during the callback. One your implemented
callback ends the buffer is gone. Memcpy data if you need it later.
Better is to do request processing as the data comes in. For example,
if there is no handler for a given URI, you can start sending a 404
before you even receive any request headers.
ry