Hi, i want write a basic HTTP Server. But i can't cookies serves.
i don't know HTTP1.1 cookie protocol very well.
s.SendLine(std::string("Date: ") + asctime_remove_nl + " GMT"); |
s.SendLine(std::string("Server: ") +serverName); |
s.SendLine("Connection: close"); |
s.SendLine("Content-Type: text/html; charset=ISO-8859-1"); |
s.SendLine("Content-Length: " + str_str.str()); |
s.SendLine("Set-Cookie: "+req.value_+"="+req.username_); |
s.SendLine(""); |
s.SendLine(req.answer_); |
What can i do for the cookie ptotocol ?