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))
--- /dev/null
+<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>