Gentee Programming Language > Documentation > Libraries Download documentation

socket.urlconnect

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.
 
uint socket.urlconnect(
      str   url,
      str   host,
      str   path
)

Parameters

urlThe URL address for connecting.
hostThe string for getting the host from the URL.
pathThe string for getting the relative path from the URL.

Return value

Nonzero if initialization was successful; otherwise 0.

See also

    Internet


 Copyright © 2004-2006 Gentee Inc. All rights reserved.