Diverse Testfiles

Für das PHP beispiel muss ein php interpreter installiert sein.
main
René Linder 2020-11-08 23:36:44 +01:00
parent 6b793369d3
commit 368edba9ba
5 changed files with 58 additions and 1 deletions

View File

@ -113,7 +113,7 @@ EndProcedure
lhs_web::register_client_handler("/server/show_client_headers", @Sample_Header(),lhs_web::#handler_proto_get, lhs_web::#handler_sub)
lhs_web::register_client_handler("/post_test", @Formular_Test(),lhs_web::#handler_proto_post, lhs_web::#handler_sub)
lhs_web::register_client_handler("/post_test", @Formular_Test(),lhs_web::#handler_proto_post, lhs_web::#handler_sub) ;Im zusammenspiel mit einem Formular
lhs_web::register_client_handler("php", @Php_Test(),lhs_web::#handler_proto_universal, lhs_web::#handler_type)

20
testweb/formularpost.html Normal file
View File

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<form action="/post_test" id="person" method="post">
<label class="h2" form="person">Namenseingabe</label>
<label for="vorname">Vorname</label>
<input type="text" name="vorname" id="vorname" maxlength="30">
<label for="zuname">Zuname</label>
<input type="text" name="zuname" id="zuname" maxlength="40">
<button type="reset">Eingaben zurücksetzen</button>
<button type="submit">Eingaben absenden</button>
</form>
</body>
</html>

12
testweb/index.html Normal file
View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<title>FALSCH</title>
</head>
<body>
<header>FALSCH</header>
<main>FALSCH</main>
<footer>FALSCH</footer>
</body>
</html>

17
testweb/test.html Normal file
View File

@ -0,0 +1,17 @@
<!DOCTYPE html><html><header><title>Alle Client Headers</title></header><body><div><div><h1>FormularPost</h1></div><br/>
<div>accept: : text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 </div><br/>
<div>user-agent: : Mozilla/5.0 (X11; Linux x86_64; rv </div><br/>
<div>cookie: : lang=de-DE </div><br/>
<div>accept-language: : de,en-US;q=0.7,en;q=0.3 </div><br/>
<div>request : /post_test </div><br/>
<div>host: : 127.0.0.1 </div><br/>
<div>content-length: : 29 </div><br/>
<div>query : </div><br/>
<div>protocol : HTTP/1.1 </div><br/>
<div>content-type: : application/x-www-form-urlencoded </div><br/>
<div>origin: : http </div><br/>
<div>accept-encoding: : gzip, deflate </div><br/>
<div>referer: : http </div><br/>
<div>method : POST </div><br/>
<div>connection: : keep-alive </div><br/>
<hr/><br/><h1>ConentJSON</h1><br/>{"vorname":"Test"}</body></html><EFBFBD>

8
testweb/test.php Normal file
View File

@ -0,0 +1,8 @@
<html>
<head>
<title>PHP-Test</title>
</head>
<body>
<?php echo '<p>Hallo Welt</p>'; ?>
</body>
</html>