diff --git a/http/cars-bugatti.jpg b/http/cars-bugatti.jpg
new file mode 100644
index 0000000..3a0c051
Binary files /dev/null and b/http/cars-bugatti.jpg differ
diff --git a/http/cars-mercedes.jpg b/http/cars-mercedes.jpg
new file mode 100644
index 0000000..f426c00
Binary files /dev/null and b/http/cars-mercedes.jpg differ
diff --git a/http/cars.lua b/http/cars.lua
new file mode 100644
index 0000000..47282cd
--- /dev/null
+++ b/http/cars.lua
@@ -0,0 +1,51 @@
+return function (connection, req, args)
+
+ local function showCars(nr)
+ if not nr then return end
+ connection:send([===[





+ This page loads "large" images of fancy cars. It is meant to serve as a stress test for nodemcu-httpserver.
+ It works with three embedded images of cars, but the server crashes with four. Select the number of cars you want to see below.
+ Whoever manages to modify nodemcu-httpserver to load all four images without crashing wins a prize!
+
+ choose: show one car + show two cars + show three cars + show four cars + show five cars + show six cars +
+ ]===]) + + showCars(args.n) + + connection:send([===[ + + + ]===]) +end + diff --git a/http/index.html b/http/index.html index 27ab9fd..8caf47a 100644 --- a/http/index.html +++ b/http/index.html @@ -22,6 +22,7 @@