|< 1 2 >| | 19 Einträge, 2 Seiten |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>
using namespace std;
int main(){
cout << "Content-type: text/html" << endl; // Diese Ausgabe muss jedes
cout << endl; // CGI-Programm ales erstes erzeugen
// Jetzt kommt der Text, der hier erzeugt (ausgegeben) wird,
// statt wie in einer HTML-Datei direkt gespeichert zu sein.
//
cout << "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2//EN\">" << endl;
cout << "<html><head><title>Einfacher CGI-C++ TEST</title></head>" << endl;
cout << "<body><h1>Einfacher CGI-C++ TEST</h1>" << endl;
cout << "<em>HALLO!</em>" << endl;
cout << "</body></html>" << endl;
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Jun 19, 2006 10:01:56 AM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-4180
Jun 19, 2006 10:01:56 AM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8443
Jun 19, 2006 10:01:56 AM org.apache.catalina.connector.Connector pause
SEVERE: Protocol handler pause failed
java.lang.NullPointerException
at org.apache.jk.server.JkMain.pause(JkMain.java:677)
at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:162)
at org.apache.catalina.connector.Connector.pause(Connector.java:1031)
at org.apache.catalina.core.StandardService.stop(StandardService.java:491)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:743)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:601)
at org.apache.catalina.startup.Catalina.start(Catalina.java:576)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
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
bash$ test.cgi
Content-Type: text/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html lang="en" dir="ltr" >
<head>
<style><!--
body { color: black; background-color: white; }
hr.half { width: 60%; align: center; }
span.red, strong.red { color: red; }
div.smaller { font-size: small; }
div.notice { border: solid thin; padding: 1em; margin: 1em 0; background: #ddd; }
span.blue { color: blue; }
col.title { color: white; background-color: black; font-weight: bold; text-align: center; }
col.data { background-color: #DDD; text-align: left; }
td.data, tr.data { background-color: #ddd; text-align: left; }
td.grayspecial { background-color: #ddd; text-align: left; }
td.ltgray, tr.ltgray { background-color: #ddd; }
td.dkgray, tr.dkgray { background-color: #bbb; }
col.black, td.black, td.title, tr.title { color: white; background-color: black; font-weight: bold; text-align: center; }
col.gray, td.gray { background-color: #ddd; text-align: center; }
table.cgi { left-margin: auto; right-margin: auto; width: 90%; }
--></style>
<title>GNU cgicc v3.2.3 Test Results</title>
</head>
<body>
<h1>GNU cgi<span class="red" >cc</span> v3.2.3 Test Results</h1>
<!-- This page generated by cgicc for -->
<h4>Thanks for using cgi<span class="red" >cc</span>, ()!</h4>
<p><div align="center" ><a href="" >Back to form</a>
</div><br /><hr class="half" />
<div align="center" class="smaller" >
GNU cgi<span class="red" >cc</span> v3.2.3<br />
Compiled at 09:55:59 on Jun 15 2006<br />
Configured for i686-pc-linux.
</div>
</body></html>
1
2
3
4
5
6
7
8
9
Content-Type: text/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html lang="EN" dir="LTR" >
</html><head><title>Cgicc example</title></head>
<body bgcolor="#cccccc" text="#000000" link="#0000ff" vlink="#000080" >
<h1>This is a demonstration of the GNU CgiCC library</h1>
</body><html>bash$
|< 1 2 >| | 19 Einträge, 2 Seiten |