Loading examples/httpcookie.cpp +5 −2 Changes for examples/httpcookie.cpp: 5 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -57,8 +57,12 @@ public: << " <style></style>" << " </head>" << "<body>"; try{ setCookieForm(); parseCookie(); }catch(...){ } _HTMLDat << "</body></html>"; libhtmlpp::HtmlString html; Loading Loading @@ -108,8 +112,8 @@ public: << "Version:<br> <input type=\"text\" name=\"version\" value=\"1\"><br>" << "<button type=\"submit\">Submit</button>" << "</form>"; _HTMLDat << "</div></br>"; if(getData("key")!=nullptr) _Cookie.setcookie(&_Curres,getData("key"),getData("value"),getData("comment"),getData("domain"),getDataInt("max-age"),getData("path"),false,getData("version")); }; Loading Loading @@ -138,7 +142,6 @@ public: }; void RequestEvent(netplus::con *curcon){ try{ std::cout << "Parse Request" << std::endl; libhttppp::HttpRequest curreq; Loading Loading
examples/httpcookie.cpp +5 −2 Changes for examples/httpcookie.cpp: 5 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -57,8 +57,12 @@ public: << " <style></style>" << " </head>" << "<body>"; try{ setCookieForm(); parseCookie(); }catch(...){ } _HTMLDat << "</body></html>"; libhtmlpp::HtmlString html; Loading Loading @@ -108,8 +112,8 @@ public: << "Version:<br> <input type=\"text\" name=\"version\" value=\"1\"><br>" << "<button type=\"submit\">Submit</button>" << "</form>"; _HTMLDat << "</div></br>"; if(getData("key")!=nullptr) _Cookie.setcookie(&_Curres,getData("key"),getData("value"),getData("comment"),getData("domain"),getDataInt("max-age"),getData("path"),false,getData("version")); }; Loading Loading @@ -138,7 +142,6 @@ public: }; void RequestEvent(netplus::con *curcon){ try{ std::cout << "Parse Request" << std::endl; libhttppp::HttpRequest curreq; Loading