summaryrefslogtreecommitdiffstats
path: root/tests/testserver/apache2/testdata/www/cgi-bin/httpcachetest_cachecontrol.cgi
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@qt.io>2019-02-01 13:37:33 +0100
committerTimur Pocheptsov <timur.pocheptsov@qt.io>2019-02-11 11:44:36 +0000
commite3f16e7a42893447631321b02a2468c3b1fa35fb (patch)
tree8517c915d37b23fdc0b596754b22bf69b69cfb3c /tests/testserver/apache2/testdata/www/cgi-bin/httpcachetest_cachecontrol.cgi
parent8c73ddd8e3fb43cc22fa111b855ab1f9f5b83405 (diff)
Convert tst_qabstractnetwork auto-test
to make it work with our new docker-based test server. Change-Id: I76345a2d3d768b8a571f2c85e69f6a21e9a96d7e Reviewed-by: Ryan Chu <ryan.chu@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'tests/testserver/apache2/testdata/www/cgi-bin/httpcachetest_cachecontrol.cgi')
-rwxr-xr-xtests/testserver/apache2/testdata/www/cgi-bin/httpcachetest_cachecontrol.cgi13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/testserver/apache2/testdata/www/cgi-bin/httpcachetest_cachecontrol.cgi b/tests/testserver/apache2/testdata/www/cgi-bin/httpcachetest_cachecontrol.cgi
new file mode 100755
index 0000000000..f2edfc161f
--- /dev/null
+++ b/tests/testserver/apache2/testdata/www/cgi-bin/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!"