How does the web server parse favicon.icon?

recently, I used cPP to write a web server. When dealing with http protocol, I mainly adopted the following ideas. Receive the data sent by the customer (fd), analyze the data, and parse the data with http. According to the parsing result, the http response message is set, and the body (usually index.html) is added to the response message. Finally, the response message is transmitted to the client, and the browser completes the rendering of the http.

but there is a problem

  • I don"t know how to write it so that the browser can display it correctly and store it in the favicon.icon of the server root
.

want to come here and ask

Apr.14,2022

display

correctly by adding link tags.
Menu