c++ - How to get row POST request data from fastcgi++ -


how can row post request data client using fastcgi++ library , show on web page.

i tried example below

      out << "<h1>post data</h1>";       if(environment().posts.size())       {          for(http::environment<wchar_t>::posts::const_iterator it=environment().posts.begin(); it!=environment().posts.end(); ++it)          {             out << "<h2>" << encoding(html) << it->first << encoding(none) << "</h2>";             if(it->second.type==http::post<wchar_t>::form)             {                out << "<p><b>type:</b> form data<br />";                out << "<b>value:</b> " << encoding(html) << it->second.value << encoding(none) << "</p>";             }              else             {                out << "<p><b>type:</b> file<br />";                out << "<b>filename:</b> " << encoding(html) << it->second.filename << encoding(none) << "<br />";                out << "<b>content type:</b> " << encoding(html) << it->second.contenttype << encoding(none) << "<br />";                out << "<b>size:</b> " << it->second.size << "<br />";                out << "<b>data:</b></p><pre>";                out.dump(it->second.data.get(), it->second.size);                out << "</pre>";             }          }       }       else          out << "<p>no post data</p>";       out << "</body></html>";       return true;    } 

but want see row post data not in form of std::map std::string .


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -