diff options
author | Fredrik Gustafsson <[email protected]> | 2013-09-04 11:14:54 +0200 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2013-09-04 11:14:54 +0200 |
commit | 9c5426cbb9e46b1edd239c849af676699f539a3d (patch) | |
tree | 81d53fcb7219f9404c70ee554716462d5a5e35dc /lib/inets/test/httpd_mod.erl | |
parent | 7dcd6b1ba9c10cb59253cf9c488106f11f8dc3a7 (diff) | |
parent | 3ed082f13d2753067ffdb7f5712c33c208ef83c4 (diff) | |
download | otp-9c5426cbb9e46b1edd239c849af676699f539a3d.tar.gz otp-9c5426cbb9e46b1edd239c849af676699f539a3d.tar.bz2 otp-9c5426cbb9e46b1edd239c849af676699f539a3d.zip |
Merge branch 'weisslj/httpd_add_script_tests/OTP-11260' into maint
* weisslj/httpd_add_script_tests/OTP-11260:
Test nocache option of mod_cgi and mod_esi
Diffstat (limited to 'lib/inets/test/httpd_mod.erl')
-rw-r--r-- | lib/inets/test/httpd_mod.erl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/inets/test/httpd_mod.erl b/lib/inets/test/httpd_mod.erl index df4ed6b179..7d3326fb65 100644 --- a/lib/inets/test/httpd_mod.erl +++ b/lib/inets/test/httpd_mod.erl @@ -842,6 +842,14 @@ cgi(Type, Port, Host, Node) -> {version, "HTTP/1.0"}]), %% tsp("cgi -> done"), + + %% Check "ScriptNoCache" directive (default: false) + ok = httpd_test_lib:verify_request(Type, Host, Port, Node, + "GET /cgi-bin/" ++ Script ++ + " HTTP/1.0\r\n\r\n", + [{statuscode, 200}, + {no_header, "cache-control"}, + {version, "HTTP/1.0"}]), ok. @@ -899,6 +907,13 @@ esi(Type, Port, Host, Node) -> " HTTP/1.0\r\n\r\n", [{statuscode, 302}, {version, "HTTP/1.0"}]), + %% Check "ErlScriptNoCache" directive (default: false) + ok = httpd_test_lib:verify_request(Type, Host, Port, Node, + "GET /cgi-bin/erl/httpd_example:get" + " HTTP/1.0\r\n\r\n", + [{statuscode, 200}, + {no_header, "cache-control"}, + {version, "HTTP/1.0"}]), ok. |