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>
13 <h1>CodeMirror: HTTP mode</h1>
15 <div><textarea id="code" name="code">
16 POST /somewhere HTTP/1.1
18 If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT
19 Content-Type: application/x-www-form-urlencoded;
21 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
23 This is the request body!
27 var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
30 <p><strong>MIME types defined:</strong> <code>message/http</code>.</p>