diff --git a/examples/postMultipartFormData/index.html b/examples/postMultipartFormData/index.html new file mode 100644 index 0000000..ac35060 --- /dev/null +++ b/examples/postMultipartFormData/index.html @@ -0,0 +1,131 @@ + + + + axios - post example + + + + + +

Post multipart/form-data

+ +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+ +
+ + + + +
+
+ +
+ + + + + diff --git a/examples/postMultipartFormData/server.js b/examples/postMultipartFormData/server.js new file mode 100644 index 0000000..b1be6b3 --- /dev/null +++ b/examples/postMultipartFormData/server.js @@ -0,0 +1,13 @@ +module.exports = function (req, res) { + + req.on('data', function (chunk) { + }); + + req.on('end', function () { + console.log('POST received'); + res.writeHead(200, { + 'Content-Type': 'text/json' + }); + res.end(); + }); +};