socket.urlconnect
Creating and connecting a socket to a URL. The method is used to create and connect a socket to the specified Internet address. If a proxy server is enabled, the connection will be established via it.
method uint socket.urlconnect (
str url,
str host,
str path
)
str url,
str host,
str path
)
Parameters
url | The URL address for connecting. |
host | The string for getting the host from the URL. |
path | The string for getting the relative path from the URL. |
Return value
If the function succeeds, the return value is 1. If the function fails, the return value is 0.
Related links | Source |