| 1 |
<HTML><TITLE>Test for HTML::Embperl::Execute and errors</TITLE><BODY> |
| 2 |
<H1> 1.) The next one produces an error page</H1> |
| 3 |
<H3><HTML><HEAD><TITLE>Embperl Error</TITLE></HEAD><BODY bgcolor="#FFFFFF"> |
| 4 |
<H1>Internal Server Error</H1> |
| 5 |
The server encountered an internal error or misconfiguration and was unable to complete your request.<P> |
| 6 |
^Please contact the server administrator\,.*?and inform them of the time the error occurred\, and anything you might have done that may have caused the error\. |
| 7 |
^\[.*?\]ERR\: 32\: Line 13\: Warning in Perl code\: Use of uninitialized value |
| 8 |
^\[.*?\]ERR\: 32\: Line 14\: Warning in Perl code\: Use of uninitialized value |
| 9 |
^\[.*?\]ERR\: 32\: Line 15\: Warning in Perl code\: Use of uninitialized value |
| 10 |
^\[.*?\]ERR\: 32\: Line 16\: Warning in Perl code\: Use of uninitialized value |
| 11 |
^\[.*?\]ERR\: 32\: Line 17\: Warning in Perl code\: Use of uninitialized value |
| 12 |
^^\[.*?\]ERR\: 32\: Line 21\: Warning in Perl code\: Unquoted string "qqqqqqqqqqqqqq" may clash with future reserved word at .*? line \d*\. |
| 13 |
^\[.*?\]ERR\: 24\: Line 21\: Error in Perl code\: syntax error at .*? line \d*\, at EOF |
| 14 |
^\[.*?\]ERR\: 24\: Line 32\: Error in Perl code\: syntax error at .*? line \d*\, at EOF |
| 15 |
^\[.*?\]ERR\: 24\: Line 32\: Error in Perl code\: Can.*? |
| 16 |
^\[.*?\]ERR\: 32\: Line 32\: Warning in Perl code\: Use of uninitialized value |
| 17 |
^^\[.*?\]ERR\: 32\: Line 46\: Warning in Perl code\: Bareword found where operator expected at .*? |
| 18 |
^^\[.*?\]ERR\: 32\: Line 46\: Warning in Perl code\: \(Missing operator before is\?\) |
| 19 |
^\[.*?\]ERR\: 24\: Line 46\: Error in Perl code\: syntax error at .*? line \d*\, near \"\;\$error is here \"\; |
| 20 |
^<br> Missing right.*?bracket |
| 21 |
^<br> syntax error at .*? line \d*\, at EOF |
| 22 |
^\[.*?\]ERR\: 20\: Line 58\: \<\;\/tr\>\; without \<\;tr\>\; |
| 23 |
^\[.*?\]ERR\: 45\: Line 58\: Unclosed HTML tag <table> at end of file |
| 24 |
^ HTML\:\:Embperl.*?<P> |
| 25 |
</BODY></HTML> |
| 26 |
|
| 27 |
|
| 28 |
</H3> |
| 29 |
<H1> 2.) The next one produces an errors, but error page is disabled</H1> |
| 30 |
<H3> |
| 31 |
<html> |
| 32 |
<head> |
| 33 |
<title>Some Plain tests for Embperl</title> |
| 34 |
</head> |
| 35 |
|
| 36 |
<body> |
| 37 |
|
| 38 |
Here it starts with some HTML Text<P> |
| 39 |
|
| 40 |
All values should be undefined: |
| 41 |
|
| 42 |
$a = (this is the value in $a) <BR> |
| 43 |
$b = (this is the value in $a) äöü <BR> |
| 44 |
$c = 57 <BR> |
| 45 |
$d = 1 <BR> |
| 46 |
$e = 2 <BR> |
| 47 |
|
| 48 |
Here we will see an error: |
| 49 |
|
| 50 |
First of all assign a value: |
| 51 |
<BR> |
| 52 |
|
| 53 |
Now we have some 'Umlaute': |
| 54 |
|
| 55 |
|
| 56 |
Second Error:<BR> |
| 57 |
<BR> |
| 58 |
|
| 59 |
And now a and b together: (this is the value in $a)(this is the value in $a) äöü<P> |
| 60 |
|
| 61 |
Here we have some HTML tags within the perl code, Embperl will delete them!<BR> |
| 62 |
|
| 63 |
57 |
| 64 |
Embperl will also translate HMTL escapes to the right characters i.e. $a &lt; 6 will get the perl expression $a < 6: <BR> |
| 65 |
|
| 66 |
1 |
| 67 |
Now they should have a value |
| 68 |
Tag missmatch: |
| 69 |
|
| 70 |
<table> |
| 71 |
|
| 72 |
</H3> |
| 73 |
<H1> 3.) Done :-)</H1> |
| 74 |
</body></html> |
| 75 |
^HTTP |
| 76 |
^Date |
| 77 |
^Server |
| 78 |
^Connection |
| 79 |
^Content-Type: text/html |
| 80 |
|
| 81 |
^^<!DOCTYPE |
| 82 |
<HTML><HEAD> |
| 83 |
^<TITLE> |
| 84 |
</HEAD><BODY> |
| 85 |
^<H1> |
| 86 |
The server encountered an internal error or |
| 87 |
misconfiguration and was unable to complete |
| 88 |
your request.<P> |
| 89 |
Please contact the server administrator, |
| 90 |
^ .*? and inform them of the time the error occurred, |
| 91 |
and anything you might have done that may have |
| 92 |
caused the error.<P> |
| 93 |
^^More information about this error may be available |
| 94 |
^^in the server error log.<P> |
| 95 |
^^<P>Additionally, a 500 Internal Server Error |
| 96 |
^^error was encountered while trying to use an ErrorDocument to handle the request. |
| 97 |
</BODY></HTML> |