<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://miniscript.org/w/index.php?action=history&amp;feed=atom&amp;title=Http.post</id>
	<title>Http.post - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://miniscript.org/w/index.php?action=history&amp;feed=atom&amp;title=Http.post"/>
	<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=Http.post&amp;action=history"/>
	<updated>2026-04-07T12:29:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>http://miniscript.org/w/index.php?title=Http.post&amp;diff=690&amp;oldid=prev</id>
		<title>SicariusVelox: added needed import statement.</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=Http.post&amp;diff=690&amp;oldid=prev"/>
		<updated>2021-04-17T01:06:59Z</updated>

		<summary type="html">&lt;p&gt;added needed import statement.&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 01:06, 17 April 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l34&quot; &gt;Line 34:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 34:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following example, typed on the Mini Micro command line posts form data, retrieves a response, and displays Hello World from the test site http://postman-echo.com.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following example, typed on the Mini Micro command line posts form data, retrieves a response, and displays Hello World from the test site http://postman-echo.com.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;ms&amp;gt;request = http.post(&amp;quot;http://postman-echo.com/post&amp;quot;, {&amp;quot;data&amp;quot;:&amp;quot;Hello World&amp;quot;})&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;ms&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;import &amp;quot;json&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;request = http.post(&amp;quot;http://postman-echo.com/post&amp;quot;, {&amp;quot;data&amp;quot;:&amp;quot;Hello World&amp;quot;})&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;request_data = json.parse(request)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;request_data = json.parse(request)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;request_data.form.data&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;request_data.form.data&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>SicariusVelox</name></author>
		
	</entry>
	<entry>
		<id>http://miniscript.org/w/index.php?title=Http.post&amp;diff=689&amp;oldid=prev</id>
		<title>SicariusVelox: Created page with &quot;In Mini Micro, the http.post function sends data to a URL using the POST method and returns the contents of the URL using the HTTP POST protocol.  It supports text, im...&quot;</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=Http.post&amp;diff=689&amp;oldid=prev"/>
		<updated>2021-04-17T00:35:40Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;In &lt;a href=&quot;/wiki/Mini_Micro&quot; title=&quot;Mini Micro&quot;&gt;Mini Micro&lt;/a&gt;, the &lt;a href=&quot;/wiki/Http&quot; title=&quot;Http&quot;&gt;http&lt;/a&gt;.post function sends data to a URL using the POST method and returns the contents of the URL using the HTTP POST protocol.  It supports text, im...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In [[Mini Micro]], the [[http]].post function sends data to a URL using the POST method and returns the contents of the URL using the HTTP POST protocol.  It supports text, images, sounds, and raw binary data.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Parameter Name !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| url || URL of the web page or resource to fetch&lt;br /&gt;
|-&lt;br /&gt;
| data || Data to post can be a [[string]] or a [[map]]&lt;br /&gt;
|-&lt;br /&gt;
| headers || optional map of HTTP headers&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Usage Notes ===&lt;br /&gt;
The type of the value returned depends on the MIME type reported by the server, as follows:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! MIME Type !! MiniScript Type&lt;br /&gt;
|-&lt;br /&gt;
| image || [[Image]] object&lt;br /&gt;
|-&lt;br /&gt;
| audio || [[Sound]] object&lt;br /&gt;
|-&lt;br /&gt;
| text, javascript, xml, or json || [[string]]&lt;br /&gt;
|-&lt;br /&gt;
| any other type || [[RawData]] object&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
The following example, typed on the Mini Micro command line posts form data, retrieves a response, and displays Hello World from the test site http://postman-echo.com.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ms&amp;gt;request = http.post(&amp;quot;http://postman-echo.com/post&amp;quot;, {&amp;quot;data&amp;quot;:&amp;quot;Hello World&amp;quot;})&lt;br /&gt;
request_data = json.parse(request)&lt;br /&gt;
request_data.form.data&lt;br /&gt;
&amp;lt;/ms&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Mini Micro]]&lt;/div&gt;</summary>
		<author><name>SicariusVelox</name></author>
		
	</entry>
</feed>