diff --git a/fetch/redirect-navigate/302-found-post-handler.py b/fetch/redirect-navigate/302-found-post-handler.py new file mode 100644 index 00000000000000..23bf4b2c522b7c --- /dev/null +++ b/fetch/redirect-navigate/302-found-post-handler.py @@ -0,0 +1,13 @@ +def main(request, response): + if request.method == "POST": + response.add_required_headers = False + response.writer.write_status(302) + response.writer.write_header("Location", request.url) + response.writer.end_headers() + response.writer.write("") + elif request.method == "GET": + return ([("Content-Type", "text/plain")], + "OK") + else: + return ([("Content-Type", "text/plain")], + "FAIL") \ No newline at end of file diff --git a/fetch/redirect-navigate/302-found-post.html b/fetch/redirect-navigate/302-found-post.html new file mode 100644 index 00000000000000..854cd329a8f120 --- /dev/null +++ b/fetch/redirect-navigate/302-found-post.html @@ -0,0 +1,20 @@ + + +HTTP 302 Found POST Navigation Test + + + + +