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 /packages | |
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 'packages')
-rw-r--r-- | packages/OS400/README.OS400 | 1 | ||||
-rw-r--r-- | packages/OS400/curl.inc.in | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/packages/OS400/README.OS400 b/packages/OS400/README.OS400 index 95a558411..6ea4ac29e 100644 --- a/packages/OS400/README.OS400 +++ b/packages/OS400/README.OS400 @@ -178,6 +178,7 @@ use: CURLINFO_CONTENT_TYPE CURLINFO_FTP_ENTRY_PATH CURLINFO_REDIRECT_URL + CURLINFO_REFERER CURLINFO_PRIMARY_IP CURLINFO_RTSP_SESSION_ID CURLINFO_LOCAL_IP diff --git a/packages/OS400/curl.inc.in b/packages/OS400/curl.inc.in index ec052dc76..c77e2066f 100644 --- a/packages/OS400/curl.inc.in +++ b/packages/OS400/curl.inc.in @@ -1690,6 +1690,8 @@ d c X'0010003A' d CURLINFO_PROXY_ERROR... CURLINFO_LONG + 59 d c X'0020003B' + d CURLINFO_REFERER... CURLINFO_STRING + 60 + d c X'0010003C' * d CURLINFO_HTTP_CODE... Old ...RESPONSE_CODE d c X'00200002' |