diff options
author | Viktor Szakats <commit@vsz.me> | 2021-02-19 13:57:19 +0000 |
---|---|---|
committer | Viktor Szakats <commit@vsz.me> | 2021-02-19 13:57:19 +0000 |
commit | 44872aefc2d54f297caf2b0cc887df321bc9d791 (patch) | |
tree | 077ea6159543fffdaf7b224014a30088dcdcf5ae /tests/data/test1067 | |
parent | 70472a44deaff387cf8c8c197e04f3add2a96e2e (diff) | |
download | curl-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/test1067 | 5 |
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> |