Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
CURL.SetOptionReferer
Sets the referrer.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
CURL | 2.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "CURL.SetOptionReferer"; curl; Value { ; Encoding } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
curl | The CURL session handle. | $curl | |
Value | The new referrer string. | "https://www.mbsplugins.de/" | |
Encoding | The text encoding for text parameter. Default is UTF-8. Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the FAQ. |
"utf8" | Optional |
Result
Returns "OK" on success.
Description
Sets the referrer.This string will be used to set the Referer: header in the http request sent to the remote server. This can be used to fool servers or scripts. You can also set any custom header with CURL.SetOptionHTTPHeader.
See also REFERER option in CURL manual.
Examples
Set referrer:
Set Variable [ $r; Value: MBS( "CURL.SetOptionReferer"; $curl; "http://www.mbsplugins.eu/" ) ]
See also
- CURL.SetOptionAutoReferer
- CURL.SetOptionHeader
- CURL.SetOptionHTTPHeader
- CURL.SetOptionIssuerCert
- CURL.SetOptionKRBLevel
- CURL.SetOptionResolve
- CURL.SetOptionResumeFrom
- CURL.SetOptionSSLCert
- CURL.SetOptionTimeOut
- CURL.SetOptionVerbose
Blog Entries
Created 18th August 2014, last changed 5th September 2021
CURL.SetOptionRedirProtocolsString - CURL.SetOptionRequestTarget