PageRenderTime 43ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/libs/cgi/example/cgi/DebugServer2/debug_view.html

http://github.com/darrengarvey/cgi
HTML | 75 lines | 71 code | 4 blank | 0 comment | 0 complexity | 6ea84a5e0a19d4ccaf8e968bc7b2929d MD5 | raw file
  1. <html>
  2. <head>
  3. <title>CGI Echo Example (using Google cTemplate)</title>
  4. <link rel="stylesheet" type="text/css" href="/css/debug_view.css" />
  5. </head>
  6. <body>
  7. {{#RUNNING_TIME}}
  8. <div class="debuginfo">
  9. Run time ({{RUNNING_TIME_RESOLUTION}}):
  10. <ul class="nvpair">
  11. <li class="name">Real</li><li class="value">{{REAL_TIME}}</li>
  12. <li class="name">CPU</li><li class="value">{{CPU_TIME}}</li>
  13. <li class="name">User</li><li class="value">{{USER_TIME}}</li>
  14. <li class="name">System</li><li class="value">{{SYSTEM_TIME}}</li>
  15. </ul>
  16. </div>
  17. {{/RUNNING_TIME}}
  18. <p class="bold">
  19. <h1>Problem found.</h1>
  20. <p>The original response follows, after some details about the error that occurred and the request that caused it</p>
  21. <p>First, the error that we tried to detect:</p>
  22. </p>
  23. <div class="info">
  24. {{ERROR}}
  25. {{#SYSTEM_ERROR}}
  26. <ul class=nvpair><p>{{ERROR_MSG}}</p>
  27. <li class=name>Code:</li>");
  28. err_msg += string("<li class=value>") + boost::lexical_cast<std::string>(err->code()) + "</li>"
  29. + "<li class=name>What:</li>"
  30. + "<li class=value>" + err->what() + "</li>"
  31. + "<li class=name>Type:</li>"
  32. + "<li class=value>" + typeid(*err).name() + "</li><br class=clear /></ul>";
  33. {{/SYSTEM_ERROR}}
  34. </div>
  35. Some details about the request:
  36. <div class="info">
  37. {{#REQUEST_DATA_MAP}}
  38. <div class="var_map">
  39. <div class="var_map_title">
  40. {{REQUEST_DATA_MAP_TITLE}}
  41. </div>
  42. <ul>
  43. {{#REQUEST_DATA_MAP_EMPTY}}
  44. <li class="var_pair">EMPTY</li>
  45. {{/REQUEST_DATA_MAP_EMPTY}}
  46. {{#REQUEST_DATA_PAIR}}
  47. <li class="var_pair">
  48. <div class="var_name">{{REQUEST_DATA_NAME:h}}</div>
  49. <div class="var_value">{{REQUEST_DATA_VALUE:h}}</div>
  50. </li>
  51. {{/REQUEST_DATA_PAIR}}
  52. </ul>
  53. </div>
  54. {{/REQUEST_DATA_MAP}}
  55. </div>
  56. The headers sent in the original (broken) response were:
  57. <div class="info">
  58. <pre style="white-space:pre; padding-left: 3em; margin-left: 1em">
  59. <ul>{{#RESPONSE_HEADER}}<li>{{HEADER:h}}</li>{{/RESPONSE_HEADER}}</ul>
  60. </pre>
  61. </div>
  62. Below is the original response (take into account that it may not look as it should):
  63. <div class="clear"></div>
  64. </body>
  65. </html>