Hallo,
ich hab mich jetzt dran gemacht, Web-Anwendungen zu entwickeln. Jetzt hab ich nur ein kleines Problem: Ich krieg sie nicht zum Laufen!
Ich hab in D6 Ent. eine ISAPI/NSAPI-DLL Web-Server-Anwendung erstellt und ein paar WebActionItems erstellt. Dann hab ich die DLL erzeugt und in ein Verzeichnis des Apache HTTP Servers gelegt. Die httpd.conf hab ich auch bearbeitet:
Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9:
| AddHandler isapi-isa .dll AddHandler cgi-script .exe
<Directory "D:/localhost/ISAPI"> Options ExecCGI AllowOverride None Order allow,deny Allow from all </Directory> |
In der Anwendung an sich hab ich für ein WebActionItem folgenden Code in OnAction, der ein einfaches Formular ausgibt:
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20:
| procedure TWebModule1.WebModule1LogonActionAction(Sender: TObject; Request: TWebRequest; Response: TWebResponse; var Handled: Boolean); begin Response.Content := '<html>' + '<head>' + ' <title>Benutzer Login</title>' + '</head>' + '<body>' +
'<form action="http://include.de/scripts/ISAPITest.dll/logUser" method="post">' + '<BR/>UserID<input name="txtUserID">' + '<BR/>Password<input name="txtPassword">' + '<BR/><BR/>' + '<input type="submit" value="Submit">' + '<input type="reset" value="Reset">' + '</form>' + '</body>' + '</html>'; end; |
PathInfo ist "/login".
Wenn ich jetzt im IE "http://localhost/ISAPI/ISAPITest.dll/login" aufrufe, bekomm ich den HTTP 500 Fehler (interner Server-Fehler).
Wär klasse, wenn mir da jemand aushelfen könnte!
Danke schonmal im Voraus!