This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
api:internet [2016/07/09 03:59] gamax92 Remove bogus signals documentation and document headers |
api:internet [2019/06/12 05:26] jacky_wang [Internet API] |
||
---|---|---|---|
Line 9: | Line 9: | ||
The returned function is an iterator over chunks of the result, use it like so: | The returned function is an iterator over chunks of the result, use it like so: | ||
`for chunk in internet.request(...) do stuff() end` | `for chunk in internet.request(...) do stuff() end` | ||
+ | Note that **this method ALSO support HTTPS**. So simply use | ||
+ | `internet.request("https://example.com")` to send a request through HTTPS. | ||
- `internet.socket(address:string[, port:number]):table` | - `internet.socket(address:string[, port:number]):table` | ||
Line 69: | Line 71: | ||
``` | ``` | ||
- | For a more advanced example, check out the IRC Client program available in the latest release of OpenComputers: [irc.lua](https://github.com/MightyPirates/OpenComputers/blob/master/src/main/resources/assets/opencomputers/loot/OpenIRC/irc.lua) | + | For a more advanced example, check out the IRC Client program available in the latest release of OpenComputers: [irc.lua](https://github.com/MightyPirates/OpenComputers/blob/master-MC1.7.10/src/main/resources/assets/opencomputers/loot/irc/usr/bin/irc.lua) |
Contents | Contents | ||
----------- | ----------- | ||
{{page>api:contents&noheader&noeditbutton&nouser&nofooter}} | {{page>api:contents&noheader&noeditbutton&nouser&nofooter}} |