summaryrefslogtreecommitdiff
path: root/tests/data/test1067
diff options
context:
space:
mode:
authorViktor Szakats <commit@vsz.me>2021-02-19 13:57:19 +0000
committerViktor Szakats <commit@vsz.me>2021-02-19 13:57:19 +0000
commit44872aefc2d54f297caf2b0cc887df321bc9d791 (patch)
tree077ea6159543fffdaf7b224014a30088dcdcf5ae /tests/data/test1067
parent70472a44deaff387cf8c8c197e04f3add2a96e2e (diff)
downloadcurl-44872aefc2d54f297caf2b0cc887df321bc9d791.tar.gz
http: add support to read and store the referrer header
- add CURLINFO_REFERER libcurl option - add --write-out '%{referer}' command-line option - extend --xattr command-line option to fill user.xdg.referrer.url extended attribute with the referrer (if there was any) Closes #6591
Diffstat (limited to 'tests/data/test1067')
-rw-r--r--tests/data/test10675
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/data/test1067 b/tests/data/test1067
index b464c71ca..5790f6b86 100644
--- a/tests/data/test1067
+++ b/tests/data/test1067
@@ -53,7 +53,7 @@ http
HTTP Location: following with auto-referer
</name>
<command>
-http://%HOSTIP:%HTTPPORT/want/1067 -L --referer "firstone.html;auto"
+http://%HOSTIP:%HTTPPORT/want/1067 --silent --location --referer "firstone.html;auto" --write-out "%{stderr}|%{referer}|"
</command>
</client>
@@ -73,5 +73,8 @@ Accept: */*
Referer: http://%HOSTIP:%HTTPPORT/want/1067
</protocol>
+<stderr nonewline="yes">
+|http://%HOSTIP:%HTTPPORT/want/1067|
+</stderr>
</verify>
</testcase>