summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-08-01 20:06:46 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-08-01 20:06:46 +0000
commitf6986ac9ad641e41335ae782ff521cf3867ed181 (patch)
treeda05c146b574fb7a4bd620bb965f62d319d83a36
parentf7cba0ddc10acb4c5c2d8167e243e04d7f9f4af7 (diff)
downloadpx4-nuttx-f6986ac9ad641e41335ae782ff521cf3867ed181.tar.gz
px4-nuttx-f6986ac9ad641e41335ae782ff521cf3867ed181.tar.bz2
px4-nuttx-f6986ac9ad641e41335ae782ff521cf3867ed181.zip
Basic files for THTTPD test
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1998 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r--nuttx/examples/thttpd/content/index.html30
-rw-r--r--nuttx/examples/thttpd/content/style.css80
2 files changed, 110 insertions, 0 deletions
diff --git a/nuttx/examples/thttpd/content/index.html b/nuttx/examples/thttpd/content/index.html
new file mode 100644
index 000000000..3c9d21f00
--- /dev/null
+++ b/nuttx/examples/thttpd/content/index.html
@@ -0,0 +1,30 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <head>
+ <title>NuttX examples/thttpd!</title>
+ <link rel="stylesheet" type="text/css" href="style.css">
+ </head>
+ <body bgcolor="#fffeec" text="black">
+
+ <div class="menu">
+ <div class="menubox"><a href="index.html">Front page</a></div>
+ <div class="menubox"><a href="cgi-bin/hello">Say Hello</a></div>
+ <div class="menubox"><a href="cgi-bin/test1">Test1</a></div>
+ <div class="menubox"><a href="cgi-bin/test2">Test2</a></div>
+ <br>
+ </div>
+
+ <div class="contentblock">
+ <p>
+ These web pages are served by a port of <a href="http://acme.com/software/thttpd/">THTTPD</a>
+ running on top of <a href="http://www.nuttx.org">NuttX</a>.
+ NuttX includes a port of the <a href="http://www.sics.se/~adam/uip/">uIP</a> embedded TCP/IP stack.
+ </p>
+ <p>
+ Click on the links above to exercise THTTPD's CGI capability under NuttX.
+ Clicking the links will execute the CGI program from an
+ <a href="http://nuttx.sourceforge.net/NuttXNxFlat.html">NXFLAT</a> program residing
+ in a ROMFS file system.
+ </p>
+ </body>
+</html>
diff --git a/nuttx/examples/thttpd/content/style.css b/nuttx/examples/thttpd/content/style.css
new file mode 100644
index 000000000..bfb0997a8
--- /dev/null
+++ b/nuttx/examples/thttpd/content/style.css
@@ -0,0 +1,80 @@
+h1
+{
+ text-align: center;
+ font-size:14pt;
+ font-family:arial,helvetica;
+ font-weight:bold;
+ padding:10px;
+}
+
+body
+{
+ background-color: #fffeec;
+ color:black;
+ font-size:8pt;
+ font-family:arial,helvetica;
+}
+
+.menu
+{
+ margin: 4px;
+ width:60%;
+ padding:2px;
+ border: solid 1px;
+ background-color: #fffcd2;
+ text-align:left;
+ font-size:9pt;
+ font-family:arial,helvetica;
+}
+
+div.menubox
+{
+ width: 25%;
+ border: 0;
+ float: left;
+ text-align: center;
+}
+
+.contentblock
+{
+ margin: 4px;
+ width:60%;
+ padding:2px;
+ border: 1px dotted;
+ background-color: white;
+ font-size:8pt;
+ font-family:arial,helvetica;
+}
+
+p.intro
+{
+ margin-left:20px;
+ margin-right:20px;
+ font-size:10pt;
+ font-family:arial,helvetica;
+}
+
+p.clink
+{
+ font-size:12pt;
+ font-family:courier,monospace;
+ text-align:center;
+}
+
+p.clink9
+{
+ font-size:9pt;
+ font-family:courier,monospace;
+ text-align:center;
+}
+
+p
+{
+ padding-left:10px;
+}
+
+p.right
+{
+ text-align:right;
+}
+