chiark / gitweb /
wip debug
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 1 Apr 2017 12:08:00 +0000 (13:08 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 1 Apr 2017 12:08:00 +0000 (13:08 +0100)
client
form.html [new file with mode: 0644]

diff --git a/client b/client
index 436592eefcaf3920221c587747a3cf21f6534c07..5d0f427d354714c37f1cd544ac54fd82f5d06ec0 100755 (executable)
--- a/client
+++ b/client
@@ -118,6 +118,7 @@ def check_outbound():
     df = open('data.dump.dbg', mode='wb')
     df.write(mime)
     df.close()
+    # POST -use -c 'multipart/form-data; boundary="b"' http://localhost:8099/ <data.dump.dbg
 
     log_debug(DBG.HTTP_FULL, 'requesting: ' + str(mime))
 
diff --git a/form.html b/form.html
new file mode 100644 (file)
index 0000000..665ba7d
--- /dev/null
+++ b/form.html
@@ -0,0 +1,16 @@
+<body>
+  <h1>no data</h1>
+  <form method="POST" action="http://localhost:8099/"
+       enctype="multipart/form-data">
+    <textarea cols=20 rows=4 name="m"></textarea>
+    <input type="submit">
+  </form>
+  <h2>with data</h1>
+  <form method="POST" action="http://localhost:8099/"
+       enctype="multipart/form-data">
+    <textarea cols=20 rows=4 name="m"></textarea>
+    <p>
+    <input type="file" name="d">
+    <input type="submit">
+  </form>
+</body>