<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.computercraft.info/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Graypup</id>
		<title>ComputerCraft Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://www.computercraft.info/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Graypup"/>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/Special:Contributions/Graypup"/>
		<updated>2026-07-11T11:38:11Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=HTTP_(API)&amp;diff=6451</id>
		<title>HTTP (API)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=HTTP_(API)&amp;diff=6451"/>
				<updated>2014-04-14T04:05:56Z</updated>
		
		<summary type="html">&lt;p&gt;Graypup: It's not mod_ComputerCraft.cfg, it's ComputerCraft.cfg!&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;:{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| '''The HTTP API must be enabled in ComputerCraft.cfg before being used. To enable it see [http://www.computercraft.info/forums2/index.php?/topic/17533-how-to-enable-the-http-api/ this tutorial].'''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The HTTP API allows interfacing with websites and downloading from them.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table style=&amp;quot;width: 100%; border: solid 1px black; margin: 2px; border-spacing: 0px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td colspan=&amp;quot;3&amp;quot; style=&amp;quot;font-weight: bold; font-size: large; padding-bottom: .3em; border-bottom: solid #C9C9C9 1px; background: #D3FFC2; line-height:28px;&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Grid_disk.png|24px]]&amp;amp;nbsp;&amp;amp;nbsp;&lt;br /&gt;
HTTP (API)&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td style=&amp;quot;width: 100px; background: #E0E0E0; padding: .4em; font-weight:bold;&amp;quot;&amp;gt;Return&amp;lt;/td&amp;gt;&amp;lt;td style=&amp;quot;width: 350px; background: #E0E0E0; padding: .4em; font-weight:bold;&amp;quot;&amp;gt;Method Name&amp;lt;/td&amp;gt;&amp;lt;td style=&amp;quot;background: #E0E0E0; padding: .4em; font-weight:bold;&amp;quot;&amp;gt;Description&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr style=&amp;quot;background-color: #FFFFFF;&amp;quot;&amp;gt;&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;[[nil]]&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;[[http.request]]({{type|string}} url, &amp;lt;nowiki&amp;gt;[&amp;lt;/nowiki&amp;gt;{{type|string}} postData])&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;Sends a HTTP request to a website, asynchronously.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr style=&amp;quot;background-color: #E8E8E8;&amp;quot;&amp;gt;&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;{{type|table}} handle&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;[[http.get]]({{type|string}} url)&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;Sends a HTTP GET request to a website, synchronously.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tr style=&amp;quot;background-color: #FFFFFF;&amp;quot;&amp;gt;&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;{{type|table}} handle&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;[[http.post]]({{type|string}} url, {{type|string}} postData)&amp;lt;/td&amp;gt;&lt;br /&gt;
&amp;lt;td style=&amp;quot;border-top: solid #C9C9C9 1px; padding: .4em;&amp;quot;&amp;gt;Sends a HTTP POST request to a website, synchronously.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[http.request]] is used to send a HTTP request that completes asynchronously and generates an event (one of [[Http success (event)|http_success]] or [[Http failure (event)|http_failure]]). [[http.get]] and [[http.post]] execute [[http.request]] and block until the operation completes.&lt;br /&gt;
&lt;br /&gt;
== Handles ==&lt;br /&gt;
All three operations make use of ''handles'', tables that contain functions to read data returned from the HTTP server. These handles act the same as the I/O handles returned by [[fs.open]] in read-only text mode, implementing the [[fs.open#Closing_a_file_handle|close]], [[fs.open#Files_opened_in_text_read_mode|readLine]], and [[fs.open#Files_opened_in_text_read_mode|readAll]] methods. These handles also implement the following function:&lt;br /&gt;
&lt;br /&gt;
{{Function&lt;br /&gt;
|name=&amp;lt;var&amp;gt;h&amp;lt;/var&amp;gt;.getResponseCode&lt;br /&gt;
|returns={{type|number}} HTTP response code&lt;br /&gt;
|api=HTTP&lt;br /&gt;
|desc=Returns the numerical [https://en.wikipedia.org/wiki/List_of_HTTP_status_codes HTTP response code] sent by the server&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:APIs]]&lt;/div&gt;</summary>
		<author><name>Graypup</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Talk:Redstone.getInput&amp;diff=5780</id>
		<title>Talk:Redstone.getInput</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Talk:Redstone.getInput&amp;diff=5780"/>
				<updated>2013-07-03T16:23:21Z</updated>
		
		<summary type="html">&lt;p&gt;Graypup: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;It doesn't show what a string is!!!&lt;br /&gt;
:Sign your comments. It doesn't need to tell you what a string is, because that's very basic coding for ''any'' language. See [[Variables]]. [[User:My hat stinks|my_hat_stinks]]&lt;br /&gt;
&lt;br /&gt;
It doesn't throw an error when the side isn't specified. &amp;lt;&amp;lt; FEATURE REQUEST :P&lt;br /&gt;
[[User:Graypup|Graypup]] 20:23, 3 July 2013 (MSK)&lt;/div&gt;</summary>
		<author><name>Graypup</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=User:Graypup&amp;diff=2369</id>
		<title>User:Graypup</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=User:Graypup&amp;diff=2369"/>
				<updated>2012-07-27T23:12:52Z</updated>
		
		<summary type="html">&lt;p&gt;Graypup: initial commit&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The creator of gOS&lt;/div&gt;</summary>
		<author><name>Graypup</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Peripheral_(API)&amp;diff=2057</id>
		<title>Peripheral (API)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Peripheral_(API)&amp;diff=2057"/>
				<updated>2012-07-10T03:15:26Z</updated>
		
		<summary type="html">&lt;p&gt;Graypup: fixed accidental error on my part, added content&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The peripheral API is for interacting with external [http://en.wikipedia.org/wiki/Peripheral peripherals], such as the disk drive and monitor.&amp;lt;br /&amp;gt;&lt;br /&gt;
[[Console|Consoles]] and [[Turtle|Turtles]] are also considered peripherals and you can interface two adjacent computers, although in a more limited fashion compared to [[Rednet (API)|rednet]]. Both Computers and Turtles provide the same methods: ''turnOn'', ''shutdown'', ''reboot'', ''getID''.&lt;br /&gt;
&lt;br /&gt;
==Methods==&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;210px&amp;quot;|Method name&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;*&amp;quot;|Description&lt;br /&gt;
|-&lt;br /&gt;
|[[peripheral.isPresent]]( side )&lt;br /&gt;
|Returns '''true''' if a peripheral is present on ''side''.&lt;br /&gt;
|-&lt;br /&gt;
|[[peripheral.getType]]( side )&lt;br /&gt;
|Returns the type or peripheral present on ''side'', nothing returned if ''side'' is empty.&lt;br /&gt;
|-&lt;br /&gt;
|[[peripheral.getMethods]]( side )&lt;br /&gt;
|Returns a table containing all methods for peripheral on ''side''.&lt;br /&gt;
|-&lt;br /&gt;
|[[peripheral.call]]( side, methodName, param1, param2, ... )&lt;br /&gt;
|Sends a function call to peripheral located on ''side''. Return values match those of called method.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Note:''' ''methodName'' is a string.&lt;br /&gt;
|-&lt;br /&gt;
|[[peripheral.wrap]]( side )&lt;br /&gt;
|Returns a handle to the peripheral located on ''side''. If assigned to a variable, it can be used to call all methods available from that peripheral, as if calling '''peripheral.call()''', e.g.:&amp;lt;br /&amp;gt;&lt;br /&gt;
fdd = peripheral.wrap(&amp;quot;left&amp;quot;)&amp;lt;br /&amp;gt;&lt;br /&gt;
fdd.someMethod()&amp;lt;br /&amp;gt;&lt;br /&gt;
''- is the same as -''&amp;lt;br /&amp;gt;&lt;br /&gt;
peripheral.call(&amp;quot;left&amp;quot;,&amp;quot;someMethod&amp;quot;)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Events==&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;210px&amp;quot;|Event name&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;*&amp;quot;|Description&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;*&amp;quot;|Parameters&lt;br /&gt;
|-&lt;br /&gt;
|peripheral&lt;br /&gt;
|Fired when peripheral is attached&lt;br /&gt;
|side&lt;br /&gt;
|-&lt;br /&gt;
|peripheral_detach&lt;br /&gt;
|Fired when peripheral is removed&lt;br /&gt;
|side&lt;br /&gt;
|}&lt;br /&gt;
==Monitor==&lt;br /&gt;
List of methods:&lt;br /&gt;
write()&lt;br /&gt;
scroll()&lt;br /&gt;
setCursorPos(x, y)&lt;br /&gt;
setCursorBlink(speed)&lt;br /&gt;
getCursorPos()&lt;br /&gt;
getSize()&lt;br /&gt;
clear()&lt;br /&gt;
clearLine(line)&lt;br /&gt;
setTextScale(scale)&lt;br /&gt;
&lt;br /&gt;
[[Category:APIs]]&lt;/div&gt;</summary>
		<author><name>Graypup</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Talk:IO_(API)&amp;diff=1783</id>
		<title>Talk:IO (API)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Talk:IO_(API)&amp;diff=1783"/>
				<updated>2012-06-21T01:57:08Z</updated>
		
		<summary type="html">&lt;p&gt;Graypup: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What features are trimmed down? ==&lt;br /&gt;
&lt;br /&gt;
it's kinda useless to say that features are trimmed down, if there's no list.&lt;br /&gt;
[[User:Graypup|Graypup]] 01:57, 21 June 2012 (UTC)&lt;/div&gt;</summary>
		<author><name>Graypup</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Talk:IO_(API)&amp;diff=1782</id>
		<title>Talk:IO (API)</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Talk:IO_(API)&amp;diff=1782"/>
				<updated>2012-06-21T01:56:54Z</updated>
		
		<summary type="html">&lt;p&gt;Graypup: What features are trimmed down?&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== What features are trimmed down? ==&lt;br /&gt;
&lt;br /&gt;
it's kinda useless to say that features are trimmed down, if there's no list.&lt;/div&gt;</summary>
		<author><name>Graypup</name></author>	</entry>

	</feed>