c - With the Apache API, why feeding strings is done line by line ? Any reason? -
i've starting playing apache, , wanted know.
if base myself on tutorial/examples i've found, e.g. mod_example.c or mod_hello.c http seems sent line line:
ap_rputs("<html><head><title>greetings</title></head></body>\n",r); ap_rputs("<h1>greetings, earthling</h1>\n",r);
is readability issue, or there real reasons ?
it's readability in many cases.
you send entire response (html, etc.) ap_rputs()
if wanted to.
Comments
Post a Comment