mirror of
https://github.com/curl/curl.git
synced 2026-07-24 16:07:16 +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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue