Project

General

Profile

Previous Up Next

INETGetURL
Send a GET http request to a specific url. This is asynchronous. When server responds, the callback is fired, with following arguments.
  • connection
  • user parameter
  • data parameter : depends on the following parameter
  • state code :
    0 some data has been received, and can be read in the received data parameter
    1 end of request. received data is nil. This is the last call of the callback.
    other an error occured during the request. received data is nil. This is the last call of the callback



INET INETGetURL (
Chn _channel_
S _url_
I _mode_
fun [INET u0 S I] u1 _callback_
u0 _user_
)
Parameters

_channel_
any channel
_url_
url
_mode_
should be 0
_callback_
callback function, called when data is retrieved from server.
_user_
user parameter
Return value

new request