summaryrefslogtreecommitdiffstats
path: root/tests/auto/qabstractnetworkcache/tests/httpcachetest_cachecontrol.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qabstractnetworkcache/tests/httpcachetest_cachecontrol.cgi')
-rwxr-xr-xtests/auto/qabstractnetworkcache/tests/httpcachetest_cachecontrol.cgi13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/qabstractnetworkcache/tests/httpcachetest_cachecontrol.cgi b/tests/auto/qabstractnetworkcache/tests/httpcachetest_cachecontrol.cgi
new file mode 100755
index 0000000000..f2edfc161f
--- /dev/null
+++ b/tests/auto/qabstractnetworkcache/tests/httpcachetest_cachecontrol.cgi
@@ -0,0 +1,13 @@
+#!/bin/bash
+if [ ! -z ${HTTP_IF_MODIFIED_SINCE} ] ; then
+ echo "Status: 304"
+ echo ""
+ exit;
+fi
+
+cc=`echo "${QUERY_STRING}" | sed -e s/%20/\ /g`
+echo "Cache-Control: $cc"
+echo "Last-Modified: Sat, 31 Oct 1981 06:00:00 GMT"
+echo "Content-type: text/html";
+echo ""
+echo "Hello World!"