Socket.SetErrorURL
------------------

Sets the URL to query when error happens.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Socket](component_Socket.md) | [6.5](newinversion65.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Socket.SetErrorURL"; SocketID; URL ) 

**MBS**( **"Socket.SetErrorURL";** /\* Sets the URL to query when error happens. \*/  
**$SocketID**; /\* The socket ID received by [Socket.Connect](SocketConnect.md) function.e.g. $sock \*/   
**$URL**) /\* The URL to trigger. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| SocketID | The socket ID received by [Socket.Connect](SocketConnect.md) function. | $sock |
| URL | The URL to trigger. |  |

### Result

Returns OK or error.

### Description

Sets the URL to query when error happens.  
$$ID$$ in the URL is replaced with socket ID.  
Queries http/ftp/sftp URLs with CURL, other URLs passed to OS to open.  
### See also

- [Socket.Connect](SocketConnect.md)

### Blog Entries

- [MBS FileMaker Plugin, version 6.5pr3](https://www.mbsplugins.de/archive/2016-10-18/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 11st October 2016 , last changed 11st October 2016

  
[Socket.SetErrorHandler](SocketSetErrorHandler.md) - [Socket.SetMulticastInterface](SocketSetMulticastInterface.md)

[HTML Version](SocketSetErrorURL.shtml)