summaryrefslogtreecommitdiffstats
path: root/LayoutTests/http/tests/cookies/resources/setCookies.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'LayoutTests/http/tests/cookies/resources/setCookies.cgi')
-rwxr-xr-xLayoutTests/http/tests/cookies/resources/setCookies.cgi9
1 files changed, 9 insertions, 0 deletions
diff --git a/LayoutTests/http/tests/cookies/resources/setCookies.cgi b/LayoutTests/http/tests/cookies/resources/setCookies.cgi
new file mode 100755
index 0000000..b9c4b21
--- /dev/null
+++ b/LayoutTests/http/tests/cookies/resources/setCookies.cgi
@@ -0,0 +1,9 @@
+#!/usr/bin/perl -wT
+use strict;
+
+print "Content-Type: text/plain\n";
+print "Cache-Control: no-store\n";
+print 'Cache-Control: no-cache="set-cookie"' . "\n";
+
+# We only map the SET_COOKIE request header to "Set-Cookie"
+print "Set-Cookie: " . $ENV{"HTTP_SET_COOKIE"} . "\n\n";