Meet us at at Real World in Orlando, Florida.
All functions
Mac OS X
Windows
Crossplatform
Components
Guides
New in version:
2.0
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
CURL.SetOptionUserAgent
Component: CURL
Version: 2.5
Mac OS X: Works
Windows: Works
MBS( "CURL.SetOptionUserAgent"; handle; Value )
Parameters
| Parameter | Description | Example value |
|---|---|---|
| Handle | The CURL session handle. | $curl |
| Value | The user agent string. | "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" |
Result
Returns "OK" on success.
Description
The user agent text string.It will be used for the user agent 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.
Examples
Set IE 6 user agent:
MBS( "CURL.SetOptionUserAgent"; $curl; "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" )
Feedback: Report problem or ask question.
Links
MBS Filemaker Plugins - Christians Software aus Nickenich