FTE's network builtins:
uri_get(513, also asuri_post) — an HTTP request: a GET, or with a MIME type a POST of the fourth argument (or of string buffer five's strings joined by the fourth). Returns 1 and runs the request apart;run/1hands each reply to the program'sURI_Get_Callback(id, code, data, length)withselfas it was, the code 0 for HTTP 200 and the status otherwise (0 when there was no reply). Returns 0, printing why, whilepr_enable_urigetis 0 or 32 requests are waiting.netaddress_resolve(625) — an address asa.b.c.d:port([v6]:portfor IPv6, no port when it is 0),QLoopBack:portforinternalserverorQLoopBack, the default port used when none is given; the empty string when it cannot be resolved ornet_enabledis 0sendpacket(242) — an out-of-band packet: the server holds no network sockets, so nothing is sent and it returns 0
Replies wait in a table belonging to the host's process (ext.uri_replies).
Summary
Functions
Run network builtin builtin.
Hand every reply that has come since the last call to the program's URI_Get_Callback, in the order they came.