diff options
author | Johannes Weißl <jargon@molb.org> | 2013-08-31 04:08:13 +0200 |
---|---|---|
committer | Fredrik Gustafsson <fredrik@erlang.org> | 2013-09-02 15:34:51 +0200 |
commit | 3ed082f13d2753067ffdb7f5712c33c208ef83c4 (patch) | |
tree | 2a6b053e84762fe75fee49099849a09954921222 /lib/inets/test/httpd_mod.erl | |
parent | 1a57f9d04b0e846ba6dccdb99643c4f7ab17705f (diff) | |
download | otp-3ed082f13d2753067ffdb7f5712c33c208ef83c4.tar.gz otp-3ed082f13d2753067ffdb7f5712c33c208ef83c4.tar.bz2 otp-3ed082f13d2753067ffdb7f5712c33c208ef83c4.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.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. |