Garry's Mod Wiki

Revision Difference

Global.HTTP#526810

<function name="HTTP" parent="Global" type="libraryfunc"> <description> Launches an asynchronous http request with the given parameters. <bug issue="2232">This cannot send or receive multiple headers with the same name.</bug> <note>HTTP-requests on private networks don't work. To enable HTTP-requests on private networks use <page>Command Line Parameters</page> `-allowlocalhttp`</note> </description> <realm>Shared and Menu</realm> <args> <arg name="parameters" type="table">The request parameters. See <page>Structures/HTTPRequest</page>.</arg> </args> <rets> <ret name="" type="boolean">true if we made a request, nil if we failed.</ret> </rets> <example>⤶ <description>Base to HTTP request.</description>⤶ <code>⤶ _G["HTTP"]({param})⤶ </code>⤶ </output>⤶ ⤶ </example>⤶ </function>