What does "respond to client" mean? What should I do to respond to a browser?
And, should I use "printf" to print out the response?
Another problem is, when I refresh the browser, my program concatenate the absolute-path to
the root again, for example:
the first time(root + absolute-path):/home/jharvard/Dropbox/pset6/public/cat.jpg
and when I refresh the browser,it becomes:/home/jharvard/Dropbox/pset6/public/cat.jpg/cat.jpg,
if refresh again, it will be:/home/jharvard/Dropbox/pset6/public/cat.jpg/cat.jpg/cat.jpg......so forth
I don't know why that would happen, and I think there should be some functions or something
that will reset the root each time we iterate the loop again...
Need some help, thanks!!