Socket.SetDataAvailableURL
--------------------------

Sets the URL to query when data is available.

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

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

**MBS**( **"Socket.SetDataAvailableURL";** /\* Sets the URL to query when data is available. \*/  
**$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 data is available.  
$$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)
- [Socket.SetDataAvailableHandler](SocketSetDataAvailableHandler.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.SetDataAvailableHandler](SocketSetDataAvailableHandler.md) - [Socket.SetErrorEvaluate](SocketSetErrorEvaluate.md)

[HTML Version](SocketSetDataAvailableURL.shtml)