This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
component:internet [2015/06/16 20:37] gamax92 Add documentation about TCP object and HTTP object |
component:internet [2016/07/09 03:49] gamax92 Add HTTP headers documentation |
||
---|---|---|---|
Line 12: | Line 12: | ||
- `connect(address:string[, port:number]):userdata` | - `connect(address:string[, port:number]):userdata` | ||
Opens a new TCP connection. Returns the handle of the connection. | Opens a new TCP connection. Returns the handle of the connection. | ||
- | - `request(url:string[, postData:string]):userdata` | + | - `request(url:string[, postData:string[, headers:table]]):userdata` |
Sends a new HTTP request. Returns the handle of the connection. | Sends a new HTTP request. Returns the handle of the connection. | ||