Browse Source

Added example that loads several images as a stress test. This does not currently work.

Marcos Kirsch 5 years ago
parent
commit
86b00f922c
6 changed files with 18 additions and 0 deletions
  1. BIN
      http/cars-ferrari.jpg
  2. BIN
      http/cars-lambo.jpg
  3. BIN
      http/cars-mas.jpg
  4. BIN
      http/cars-porsche.jpg
  5. 17 0
      http/cars.html
  6. 1 0
      http/index.html

BIN
http/cars-ferrari.jpg


BIN
http/cars-lambo.jpg


BIN
http/cars-mas.jpg


BIN
http/cars-porsche.jpg


+ 17 - 0
http/cars.html

@@ -0,0 +1,17 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+   <meta http-equiv="content-type" content="text/html; charset=utf-8">
+   <title>Nice cars</title>
+</head>
+<body>
+<h1>Nice cars!</h1>
+<p>This page loads "large" images of fancy cars. It is meant to serve as a stress test for nodemcu-httpserver.</p>
+<figure><img src="cars-ferrari.jpg" /><figcaption>Ferrari</figcaption></figure>
+<figure><img src="cars-lambo.jpg" /><figcaption>Lamborghini</figcaption></figure>
+<figure><img src="cars-mas.jpg" /><figcaption>maserati</figcaption></figure>
+<figure><img src="cars-porsche.jpg" /><figcaption>Porsche</figcaption></figure>
+</body>
+</html>
+
+

+ 1 - 0
http/index.html

@@ -20,6 +20,7 @@
    <h3>Serve me some pages!</h3>
    <ul>
       <li><a href="index.html">Index</a>: This page (static)</li>
+      <li><a href="cars.html">Nice cars</a>: Stress test, loads 4 "large" images. Makes the chip panic and restart :( (static)</li>
       <li><a href="zipped.html">Zipped</a>: File is actually saved as zipped.html.gz. A compressed file! (static but gzipped)</li>
       <li><a href="zipped.html.gz">Zipped</a>: Same exact file as served above. Server is smart enough to treat the .gz extension correctly (static but gzipped)</li>
       <li><a href="args.lua">Arguments</a>: Parses arguments passed in the URL and prints them. (Lua)</li>