summaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/curl/curl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index b53df7851..bed8068b0 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -2761,8 +2761,9 @@ typedef enum {
CURLINFO_RETRY_AFTER = CURLINFO_OFF_T + 57,
CURLINFO_EFFECTIVE_METHOD = CURLINFO_STRING + 58,
CURLINFO_PROXY_ERROR = CURLINFO_LONG + 59,
+ CURLINFO_REFERER = CURLINFO_STRING + 60,
- CURLINFO_LASTONE = 59
+ CURLINFO_LASTONE = 60
} CURLINFO;
/* CURLINFO_RESPONSE_CODE is the new name for the option previously known as