-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
call local redirect response infinitely pairly
- Loading branch information
Showing
4 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
tests/simple_server_function_test/request_file/cgi_invalid_local_redirect_infinity_pair.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
host, localhost | ||
port, 8080 | ||
|
||
|
||
GET /cgi-bin/invalid_local_redirect_infinity_pair_a.py HTTP/1.1 | ||
Host: test | ||
Connection: close |
28 changes: 28 additions & 0 deletions
28
tests/simple_server_function_test/response_file/cgi_invalid_local_redirect_infinity_pair.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
HTTP/1.1 500 Internal Server Error | ||
Connection: close | ||
Content-Length: 620 | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/> | ||
<title>Error 500 - %{HOSTNAME}</title> | ||
<style> | ||
html{ | ||
background-color: #f1c40f; | ||
} | ||
|
||
body{ | ||
color: #fefefe; | ||
} | ||
</style> | ||
|
||
</head> | ||
|
||
<body> | ||
<div class="error-middle"> | ||
<h1>Error 500 - Internal Server Error</h1> | ||
<p>The 500 (Internal Server Error) status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.</p> | ||
</div> | ||
</body> | ||
</html> |
2 changes: 2 additions & 0 deletions
2
tests/simple_server_function_test/www/cgi-bin/invalid_local_redirect_infinity_pair_a.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
print("Location: /cgi-bin/invalid_local_redirect_infinity_pair_b.py") | ||
print() # ヘッダーの終わりを示す空行 |
2 changes: 2 additions & 0 deletions
2
tests/simple_server_function_test/www/cgi-bin/invalid_local_redirect_infinity_pair_b.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
print("Location: /cgi-bin/invalid_local_redirect_infinity_pair_a.py") | ||
print() # ヘッダーの終わりを示す空行 |