directly call sprintf while generating HTTP/1 response