index.html 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>CodeMirror: HTTP mode</title>
  6. <link rel="stylesheet" href="../../lib/codemirror.css">
  7. <script src="../../lib/codemirror.js"></script>
  8. <script src="http.js"></script>
  9. <link rel="stylesheet" href="../../doc/docs.css">
  10. <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
  11. </head>
  12. <body>
  13. <h1>CodeMirror: HTTP mode</h1>
  14. <div><textarea id="code" name="code">
  15. POST /somewhere HTTP/1.1
  16. Host: example.com
  17. If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT
  18. Content-Type: application/x-www-form-urlencoded;
  19. charset=utf-8
  20. User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Ubuntu/12.04 Chromium/20.0.1132.47 Chrome/20.0.1132.47 Safari/536.11
  21. This is the request body!
  22. </textarea></div>
  23. <script>
  24. var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
  25. </script>
  26. <p><strong>MIME types defined:</strong> <code>message/http</code>.</p>
  27. </body>
  28. </html>