File: test_main.html

package info (click to toggle)
lua-cgi 5.1.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 760 kB
  • sloc: makefile: 25
file content (170 lines) | stat: -rwxr-xr-x 5,846 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
<html>
<head><title>Test Page</title></head>

<table border>
  <tr>
    <th colspan="4"> GET: </td>
  </tr>
  <tr>
    <td>Lua script</td>
    <td><a href="/cgi-bin/cgi/t/test_main.lua?field1=ab&field2=cd&field1=ef">cgi</a></td>
    <td><a href="/fcgi/fastcgi/t/test_main.lua?field1=ab&field2=cd&field1=ef">fcgi</a></td>
    <td><a href="/t/test_main.lua?field1=ab&field2=cd&field1=ef">module</a></td>
  </tr>
  <tr>
    <td>HTML template</td>
    <td><a href="/cgi-bin/cgi/t/test_main.lp?field1=ab&field2=cd&field1=ef">cgi</a></td>
    <td><a href="/fcgi/fastcgi/t/test_main.lp?field1=ab&field2=cd&field1=ef">fcgi</a></td>
    <td><a href="/t/test_main.lp?field1=ab&field2=cd&field1=ef">module</a></td>
  </tr>

  <tr>
    <th colspan="4"> POST: </td>
  </tr>
  <tr>
    <td colspan="4">
      <form method="POST" action="">
        <table>
          <tr>
            <td colspan="4">
              field 1: <input type="text" name="field1"><br>
              field 2: <input type="text" name="field2"><br>
              field 3:
                <input type="checkbox" name="field3" value="op 1">op 1
                <input type="checkbox" name="field3" value="op 2">op 2
                <input type="checkbox" name="field3" value="op 3">op 3
            </td>
          </tr>
          <tr>
            <td>Lua script</td>
            <td>
              <a href="javascript:document.forms[0].action='/cgi-bin/cgi/t/test_main.lua';document.forms[0].submit()">cgi</a>
            </td>
            <td>
              <a href="javascript:document.forms[0].action='/fcgi/fastcgi/t/test_main.lua';document.forms[0].submit()">fcgi</a>
            </td>
            <td>
              <a href="javascript:document.forms[0].action='/t/test_main.lua';document.forms[0].submit()">module</a>
            </td>
          </tr>
          <tr>
            <td>HTML template</td>
            <td>
              <a href="javascript:document.forms[0].action='/cgi-bin/cgi/t/test_main.lp';document.forms[0].submit()">cgi</a>
            </td>
            <td>
              <a href="javascript:document.forms[0].action='/fcgi/fastcgi/t/test_main.lp';document.forms[0].submit()">fcgi</a>
            </td>
            <td>
              <a href="javascript:document.forms[0].action='/t/test_main.lp';document.forms[0].submit()">module</a>
            </td>
          </tr>
        </table>
      </form>
    </td>
  </tr>

  <tr>
    <th colspan="4"> POST (with upload): </td>
  </tr>
  <tr>
    <td colspan="4">
      <form method="POST" enctype="multipart/form-data" action="">
        <table>
          <tr>
            <td colspan="4">
              field 1: <input type="text" name="field1"><br>
              file (binary!): <input type="file" name="file"><br>
            </td>
          </tr>
          <tr>
            <td>Lua script</td>
            <td>
              <a href="javascript:document.forms[1].action='/cgi-bin/cgi/t/test_main.lua';document.forms[1].submit()">cgi</a>
            </td>
            <td>
              <a href="javascript:document.forms[1].action='/fcgi/fastcgi/t/test_main.lua';document.forms[1].submit()">fcgi</a>
            </td>
            <td>
              <a href="javascript:document.forms[1].action='/t/test_main.lua';document.forms[1].submit()">module</a>
            </td>
          </tr>
          <tr>
            <td>HTML template</td>
            <td>
              <a href="javascript:document.forms[1].action='/cgi-bin/cgi/t/test_main.lp';document.forms[1].submit()">cgi</a>
            </td>
            <td>
              <a href="javascript:document.forms[1].action='/fcgi/fastcgi/t/test_main.lp';document.forms[1].submit()">fcgi</a>
            </td>
            <td>
              <a href="javascript:document.forms[1].action='/t/test_main.lp';document.forms[1].submit()">module</a>
            </td>
          </tr>
        </table>
      </form>
    </td>
  </tr>
  <tr>
    <th colspan="4"> Cookies: </td>
  </tr>
  <tr>
    <td>Lua script</td>
    <td><a href="/cgi-bin/cgi/t/test_cookies.lua">cgi</a></td>
    <td><a href="/fcgi/fastcgi/t/test_cookies.lua">fcgi</a></td>
    <td><a href="/t/test_cookies.lua">module</a></td>
  </tr>
  <tr>
    <td>HTML template</td>
    <td><a href="/cgi-bin/cgi/t/test_cookies.lp">cgi</a></td>
    <td><a href="/fcgi/fastcgi/t/test_cookies.lp">fcgi</a></td>
    <td><a href="/t/test_cookies.lp">module</a></td>
  </tr>
  <tr>
    <th colspan="4"> Filesystem: </td>
  </tr>
  <tr>
    <td>Lua script</td>
    <td><a href="/cgi-bin/cgi/t/test_fs.lua">cgi</a></td>
    <td><a href="/fcgi/fastcgi/t/test_fs.lua">fcgi</a></td>
    <td><a href="/t/test_fs.lua">module</a></td>
  </tr>
  <tr>
    <th colspan="4"> Session: </td>
  </tr>
  <tr>
    <td>Lua script</td>
    <td><a href="/cgi-bin/cgi/t/test_session.lua">cgi</a></td>
    <td><a href="/fcgi/fastcgi/t/test_session.lua">fcgi</a></td>
    <td><a href="/t/test_session.lua">module</a></td>
  </tr>
  <tr>
    <th colspan="4"> CGI Variables: </td>
  </tr>
  <tr>
    <td>HTML template</td>
    <td><a href="/cgi-bin/cgi/t/test_variables.lp">cgi</a></td>
    <td><a href="/fcgi/fastcgi/t/test_variables.lp">fcgi</a></td>
    <td><a href="/t/test_variables.lp">module</a></td>
  </tr>
  <tr>
    <th colspan="4"> Library Overview: </td>
  </tr>
  <tr>
    <td>HTML template</td>
    <td><a href="/cgi-bin/cgi/t/overview.lp">cgi</a></td>
    <td><a href="/fcgi/fastcgi/t/overview.lp">fcgi</a></td>
    <td><a href="/t/overview.lp">module</a></td>
  </tr>
  <tr>
    <th colspan="4"> Concurrency </td>
  </tr>
  <tr>
    <td>Lua script</td>
    <td><a href="/cgi-bin/cgi/t/test_conc.lua">cgi</a></td>
    <td><a href="/fcgi/fastcgi/t/test_conc.lua">fcgi</a></td>
    <td><a href="/t/test_conc.lua">module</a></td>
  </tr>
</table>
<small>$Id: test_main.html,v 1.12 2004/11/25 10:52:58 tomas Exp $</small>
</html>