<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dev.playonset.com/index.php?action=history&amp;feed=atom&amp;title=http_result_status</id>
	<title>http result status - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dev.playonset.com/index.php?action=history&amp;feed=atom&amp;title=http_result_status"/>
	<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=http_result_status&amp;action=history"/>
	<updated>2026-04-24T11:29:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://dev.playonset.com/index.php?title=http_result_status&amp;diff=3746&amp;oldid=prev</id>
		<title>BlueMountains: Created page with &quot;{{Info|Function|Server|1.0.3}}  {{FuncDescription|Returns the http status code after a request was made.}}  {{FuncSyntax|http_result_status(http)}}  {{FuncParameters}} {{FuncP...&quot;</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=http_result_status&amp;diff=3746&amp;oldid=prev"/>
		<updated>2020-01-24T19:12:39Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Info|Function|Server|1.0.3}}  {{FuncDescription|Returns the http status code after a request was made.}}  {{FuncSyntax|http_result_status(http)}}  {{FuncParameters}} {{FuncP...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Info|Function|Server|1.0.3}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Returns the http status code after a request was made.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|http_result_status(http)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|http|The http identifier.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|Returns the http status code.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function test_get()&lt;br /&gt;
	local r = http_create()&lt;br /&gt;
	http_set_resolver_protocol(r, &amp;quot;any&amp;quot;)&lt;br /&gt;
	http_set_protocol(r, &amp;quot;https&amp;quot;)&lt;br /&gt;
	http_set_host(r, &amp;quot;postman-echo.com&amp;quot;)&lt;br /&gt;
	http_set_port(r, 443)&lt;br /&gt;
	http_set_verifymode(r, &amp;quot;verify_peer&amp;quot;)&lt;br /&gt;
	http_set_target(r, &amp;quot;/get?foo=bar&amp;amp;onset=nice&amp;quot;)&lt;br /&gt;
	http_set_verb(r, &amp;quot;get&amp;quot;)&lt;br /&gt;
	http_set_timeout(r, 30000)&lt;br /&gt;
	http_set_version(r, 11)&lt;br /&gt;
	http_set_keepalive(r, false)&lt;br /&gt;
	http_set_field(r, &amp;quot;user-agent&amp;quot;, &amp;quot;Onset Server &amp;quot;..GetGameVersionString())&lt;br /&gt;
	&lt;br /&gt;
	if http_send(r, OnGetComplete, &amp;quot;Str L&amp;quot;, 88.88, 1337) == false then&lt;br /&gt;
		print(&amp;quot;HTTP REQ NOT SENT :(&amp;quot;)&lt;br /&gt;
		http_destroy(r)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function print_active_results(http)&lt;br /&gt;
	local body = http_result_body(http)&lt;br /&gt;
	local header = http_result_header(http)&lt;br /&gt;
	local status = http_result_status(http)&lt;br /&gt;
	&lt;br /&gt;
	print(&amp;quot;\tBody: &amp;quot;, body)&lt;br /&gt;
	print(&amp;quot;\tHTTP Status: &amp;quot;, status)&lt;br /&gt;
	print(&amp;quot;\t Headers:&amp;quot;)&lt;br /&gt;
	for k, v in pairs(header) do&lt;br /&gt;
		print(&amp;quot;\t&amp;quot;, k, v)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
{{HttpFunctions}}&lt;/div&gt;</summary>
		<author><name>BlueMountains</name></author>
	</entry>
</feed>