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:
Viktor Szakats 2021-02-19 13:57:19 +00:00
parent 70472a44de
commit 44872aefc2
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
15 changed files with 35 additions and 11 deletions

View file

@ -43,6 +43,7 @@ check_PROGRAMS = \
getinfo \
getinmemory \
getredirect \
getreferrer \
http-post \
http2-download \
http2-pushinmemory \