浏览代码

Add sample file with a form using method POST

Marcos Kirsch 9 年之前
父节点
当前提交
572732fd44
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      http/post.html

+ 10 - 0
http/post.html

@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html lang="en"><head><meta charset="utf-8"><title>Post</title></head><body>
+<h1>Post</h1>
+This form uses POST method which is not supported by nodemcu-httpserver.<br>
+You should get an error when you submit.
+<form method="POST">
+   Whatever:<input type="text" name="whatever"><br>
+   <input type="submit" value="Submit">
+</form>
+</body></html>