Garry's Mod Wiki

Revision Difference

Global.HTTP#520198

<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> <warning>HTTP-requests on private networks don't work. More at <page text="issue#3684">https://github.com/Facepunch/garrysmod-issues/issues/3684</page></warning>⤶ <note>To enable HTTP-requests on private networks use <page>Command Line Parameters</page> `-allowlocalhttp`</note>⤶ <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> </function>