mirror of
https://github.com/curl/curl.git
synced 2026-08-26 02:03:32 +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
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue