Loading examples/httpauth.cpp +4 −4 Changes for examples/httpauth.cpp: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -67,9 +67,9 @@ public: << "<li><a href=\"/httpbasicauth\"> Basicauth </<a></li>" << "<li><a href=\"/httpdigestauth\"> Digestauth </<a></li>"; condat << "</ul></body></html>"; std::string html; libhtmlpp::HtmlString html; libhtmlpp::print(condat.parse(),html); curres.send(curcon,html.c_str(),html.length()); curres.send(curcon,html.c_str(),html.size()); }else if(strncmp(cururl,"/httpbasicauth",strlen(cururl))==0 || strncmp(cururl,"/httpdigestauth",strlen(cururl))==0){ libhttppp::HttpAuth httpauth; Loading @@ -94,9 +94,9 @@ public: curres.setState(HTTP200); curres.setVersion(HTTPVERSION(1.1)); curres.setContentType("text/html"); std::string html; libhtmlpp::HtmlString html; libhtmlpp::print(condat.parse(),html); curres.send(curcon,html.c_str(),html.length()); curres.send(curcon,html.c_str(),html.size()); return; }else{ libhttppp::HttpResponse curres; Loading examples/httpcon.cpp +2 −2 Changes for examples/httpcon.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -59,9 +59,9 @@ void sendResponse(netplus::con *curcon,libhttppp::HttpRequest *curreq) { << "<br/>"; } condat << "</body></html>"; std::string html; libhtmlpp::HtmlString html; libhtmlpp::print((condat.parse()),html); curres.send(curcon,html.c_str(),html.length()); curres.send(curcon,html.c_str(),html.size()); }; class Controller : public netplus::event { Loading examples/httpcookie.cpp +2 −2 Changes for examples/httpcookie.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -61,9 +61,9 @@ public: parseCookie(); _HTMLDat << "</body></html>"; std::string html; libhtmlpp::HtmlString html; libhtmlpp::print(_HTMLDat.parse(),html); _Curres.send(_Curcon,html.c_str(),html.length()); _Curres.send(_Curcon,html.c_str(),html.size()); }; const char *getData(const char *key){ Loading examples/httpform.cpp +2 −2 Changes for examples/httpform.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -179,9 +179,9 @@ private: << "<h2>Output</h2>"; condat+=formdat; condat << "</div></body></html>"; std::string html; libhtmlpp::HtmlString html; libhtmlpp::print(condat.parse(),html); curres.send(curcon, html.c_str(), html.length()); curres.send(curcon, html.c_str(), html.size()); }; }; Loading examples/httpproxy.cpp +2 −2 Changes for examples/httpproxy.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -57,9 +57,9 @@ void sendResponse(netplus::con *curcon,libhttppp::HttpRequest *curreq) { << "<br/>"; } condat << "</body></html>"; std::string html; libhtmlpp::HtmlString html; libhtmlpp::print(condat.parse(),html); curres.send(curcon,html.c_str(),html.length()); curres.send(curcon,html.c_str(),html.size()); }; class Controller : public netplus::event { Loading Loading
examples/httpauth.cpp +4 −4 Changes for examples/httpauth.cpp: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -67,9 +67,9 @@ public: << "<li><a href=\"/httpbasicauth\"> Basicauth </<a></li>" << "<li><a href=\"/httpdigestauth\"> Digestauth </<a></li>"; condat << "</ul></body></html>"; std::string html; libhtmlpp::HtmlString html; libhtmlpp::print(condat.parse(),html); curres.send(curcon,html.c_str(),html.length()); curres.send(curcon,html.c_str(),html.size()); }else if(strncmp(cururl,"/httpbasicauth",strlen(cururl))==0 || strncmp(cururl,"/httpdigestauth",strlen(cururl))==0){ libhttppp::HttpAuth httpauth; Loading @@ -94,9 +94,9 @@ public: curres.setState(HTTP200); curres.setVersion(HTTPVERSION(1.1)); curres.setContentType("text/html"); std::string html; libhtmlpp::HtmlString html; libhtmlpp::print(condat.parse(),html); curres.send(curcon,html.c_str(),html.length()); curres.send(curcon,html.c_str(),html.size()); return; }else{ libhttppp::HttpResponse curres; Loading
examples/httpcon.cpp +2 −2 Changes for examples/httpcon.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -59,9 +59,9 @@ void sendResponse(netplus::con *curcon,libhttppp::HttpRequest *curreq) { << "<br/>"; } condat << "</body></html>"; std::string html; libhtmlpp::HtmlString html; libhtmlpp::print((condat.parse()),html); curres.send(curcon,html.c_str(),html.length()); curres.send(curcon,html.c_str(),html.size()); }; class Controller : public netplus::event { Loading
examples/httpcookie.cpp +2 −2 Changes for examples/httpcookie.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -61,9 +61,9 @@ public: parseCookie(); _HTMLDat << "</body></html>"; std::string html; libhtmlpp::HtmlString html; libhtmlpp::print(_HTMLDat.parse(),html); _Curres.send(_Curcon,html.c_str(),html.length()); _Curres.send(_Curcon,html.c_str(),html.size()); }; const char *getData(const char *key){ Loading
examples/httpform.cpp +2 −2 Changes for examples/httpform.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -179,9 +179,9 @@ private: << "<h2>Output</h2>"; condat+=formdat; condat << "</div></body></html>"; std::string html; libhtmlpp::HtmlString html; libhtmlpp::print(condat.parse(),html); curres.send(curcon, html.c_str(), html.length()); curres.send(curcon, html.c_str(), html.size()); }; }; Loading
examples/httpproxy.cpp +2 −2 Changes for examples/httpproxy.cpp: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -57,9 +57,9 @@ void sendResponse(netplus::con *curcon,libhttppp::HttpRequest *curreq) { << "<br/>"; } condat << "</body></html>"; std::string html; libhtmlpp::HtmlString html; libhtmlpp::print(condat.parse(),html); curres.send(curcon,html.c_str(),html.length()); curres.send(curcon,html.c_str(),html.size()); }; class Controller : public netplus::event { Loading