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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -