mirror of
https://github.com/curl/curl.git
synced 2026-08-26 16:03:33 +03:00
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
This commit is contained in:
parent
70472a44de
commit
44872aefc2
15 changed files with 35 additions and 11 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue