Revision Difference
Global.HTTP#546073
<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>
⤶
<bug>Currently there is a problem with CURL library on Linux being unable to validate HTTPS connections with certificates issued by Let's Encrypt. The best course of action to solve this problem now is to use binary module that replaces HTTP function. Either this one https://github.com/WilliamVenner/gmsv_reqwest or this one https://github.com/timschumi/gmod-chttp.</bug>
<bug issue="2232">This cannot send or receive multiple headers with the same name.</bug>⤶
<note>HTTP-requests to destinations on private networks (such as `192.168.0.1`) won't work.<br/>
To enable HTTP-requests to destinations 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>