aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/test/httpd_mod.erl
diff options
context:
space:
mode:
authorJohannes Weißl <[email protected]>2013-08-31 04:08:13 +0200
committerIngela Anderton Andin <[email protected]>2014-02-05 10:32:23 +0100
commite5764c3299eb5c500b1f4e3d743ec2c780e4b6bb (patch)
tree678646fa0ffb4e2fa165e84a385b50bbc9883dbd /lib/inets/test/httpd_mod.erl
parent459c933d7c186ea7d862b9fe4f308e9ea632a3d2 (diff)
downloadotp-e5764c3299eb5c500b1f4e3d743ec2c780e4b6bb.tar.gz
otp-e5764c3299eb5c500b1f4e3d743ec2c780e4b6bb.tar.bz2
otp-e5764c3299eb5c500b1f4e3d743ec2c780e4b6bb.zip
Test nocache option of mod_cgi and mod_esi
Tests that the nocache options work and can be used independently from each other. This was broken before c8ef69c. Conflicts: lib/inets/test/httpd_basic_SUITE.erl
Diffstat (limited to 'lib/inets/test/httpd_mod.erl')
-rw-r--r--lib/inets/test/httpd_mod.erl15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/inets/test/httpd_mod.erl b/lib/inets/test/httpd_mod.erl
index 075409e2eb..558958424a 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.