Commit b26de82d authored by jan.koester's avatar jan.koester
Browse files

fixed cookie test

parent 725a3167
Loading
Loading
Loading
Loading
+5 −2
Changes for examples/httpcookie.cpp: 5 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -57,8 +57,12 @@ public:
        << "    <style></style>"
        << "  </head>"
        << "<body>";
        try{
            setCookieForm();
            parseCookie();
        }catch(...){

        }
        _HTMLDat  << "</body></html>";

        libhtmlpp::HtmlString html;
@@ -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"));
    };
    
@@ -138,7 +142,6 @@ public:
        
    };
    void RequestEvent(netplus::con *curcon){

        try{
            std::cout << "Parse Request" << std::endl;
            libhttppp::HttpRequest curreq;