PageRenderTime 37ms CodeModel.GetById 12ms RepoModel.GetById 1ms app.codeStats 0ms

/libs/cgi/example/cgi/DebugServer2/default_view.html

http://github.com/darrengarvey/cgi
HTML | 26 lines | 23 code | 3 blank | 0 comment | 0 complexity | ccd8742de9000bec50ade4dd8c17b64f MD5 | raw file
  1. <html>
  2. <head>
  3. <title>CGI Debug Server Example (using Google cTemplate)</title>
  4. <link rel="stylesheet" type="text/css" href="/css/debug_view.css" />
  5. </head>
  6. <body>
  7. <h1>Debugging Server Example</h1>
  8. <p>
  9. The server used in this example will catch exceptions thrown by your request handler, or a non-zero return value. It will print some presumably helpful info about what might have caused the problem - obviously this is just an example, which you'd
  10. probably want to ammend.
  11. </p>
  12. <p>
  13. The handler in this example will throw a std::runtime_error if you pass 'badger=bait!' to the script, for example by following <a href="?badger=bait%21">this link</a>.
  14. </p>
  15. <p>
  16. The handler in this example will also return false if you pass pass 'spam' to the script, for example by clicking <a href="?spam">here</a>.
  17. </p>
  18. <p>
  19. Finally, you can simulate an error and get traceback details regardless of whether the script completed by passing 'debug=1',
  20. or by following <a href="?debug=1">this link</a>.
  21. </p>
  22. </body>
  23. </html>