1.cppsp 700 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <%#
  2. #include <iostream>
  3. #include <unistd.h>
  4. #include <sys/types.h>
  5. #include <stdexcept>
  6. #include <cppsp/common.H>
  7. #include <delegate.H>
  8. #include <iostream>
  9. %>
  10. <%$
  11. void init() {
  12. doReadPost=true;
  13. }
  14. %>
  15. form:
  16. <table border="1">
  17. <%
  18. for(auto it=request->form.begin();it!=request->form.end();it++) {
  19. %>
  20. <tr>
  21. <td><%=htmlEscape((*it).first.toSTDString())%></td>
  22. <td><%=htmlEscape((*it).second.toSTDString())%></td>
  23. </tr>
  24. <%
  25. }
  26. %>
  27. </table>
  28. querystring:
  29. <table border="1">
  30. <%
  31. for(auto it=request->queryString.begin();it!=request->queryString.end();it++) {
  32. %>
  33. <tr>
  34. <td><%=htmlEscape((*it).first.toSTDString())%></td>
  35. <td><%=htmlEscape((*it).second.toSTDString())%></td>
  36. </tr>
  37. <%
  38. }
  39. %>
  40. </table>