about http protocol and web server
Posted on 2003-02-22
hi,i am making a simple web server and has several questions:
1)As requested by the problem,the web server need to process head method,which is somewhat similar to get method except the entity body.But if i use the internet explorer as a client testing tool.how it can send head method to test this function?
2)how the server can get and return the last modified time of a file using C/C++ since the server need to return this as a return header to the client,i thought there is no such method in their library?
3)how the server determine whether the client has the "cache" locally?as it appears in the return header: cache:no/yes
4)what's the meaning of "Connection:close;" defined in the return header?And when a server need to return this header?
Your Help is greatly Appreciated!