TURL_SetProxy (function reference)

By June 1, 2017 September 26th, 2017 Online Help, Troi URL plug-in
Troi URL Plug-in > Functions reference > TURL_SetProxy
Troi URL Plug-in for FileMaker Pro

TURL_SetProxy

Sets an explicit proxy server to be used, via which the data is sent to the web server.

SyntaxFunction badge

TURL_SetProxy ( switches ; proxyAddress ; proxyPortNr ; proxyUserName;
proxyPassword )

Parameters

switchesnot used, reserved for future use. Leave blank or put “-unused”
proxyAddressthe IP address of the proxy server
proxyPortNr(optional) the portnr of the proxy server
proxyUserName(optional) the user name to be sent as authentication to the proxy server
proxyPassword(optional) the password to be sent as authentication to the proxy server

Returned Result

Data type returned

Error code

Result

If successful this function returns 0. If unsuccessful it returns an error code starting with $$ followed by the error code.

At the moment this function does not return errors.

Originated in

Troi URL Plug-in 1.8.2

Compatibility

FileMaker Pro 12 to 16

Considerations

If you don’t use this function the system settings for proxies will be used.
You can reset the proxy by specifying an empty proxyAddress string. The systems settings will be used then.

Some proxy servers require authentication, which you can supply with the optional proxyUserName and proxyPassword parameters.

Example

TURL_SetProxy ( "-unused" ; "proxy.server.com" ; 1234 )

This sets the proxy to the server at proxy.server.com at port 1234.

Example 2

Set Field [ gErrorCode ; TURL_SetProxy ("-unused" ; "192.168.0.60" ; 8000 ) ]

This sets the proxy to the server at address “192.168.0.60” and port 8000.

Set Field [ gErrorCode ; TURL_SetProxy ( "-unused" ; "" ) ]

This resets the proxy setting. The plug-in will use the system settings for proxies.

Related functionsFunction badge

TURL_Get
TURL_Post

Online Help Page for Troi URL Plug-in for 12 to 16 –> TURL_SetProxy (urlp4411) 2017-0623 14:53:31