|
@@ -143,7 +143,7 @@
|
|
|
<param index="3" name="body" type="String" default="""" />
|
|
|
<description>
|
|
|
Sends a request to the connected host.
|
|
|
- The URL parameter is usually just the part after the host, so for [code]https://somehost.com/index.php[/code], it is [code]/index.php[/code]. When sending requests to an HTTP proxy server, it should be an absolute URL. For [constant HTTPClient.METHOD_OPTIONS] requests, [code]*[/code] is also allowed. For [constant HTTPClient.METHOD_CONNECT] requests, it should be the authority component ([code]host:port[/code]).
|
|
|
+ The URL parameter is usually just the part after the host, so for [code]https://example.com/index.php[/code], it is [code]/index.php[/code]. When sending requests to an HTTP proxy server, it should be an absolute URL. For [constant HTTPClient.METHOD_OPTIONS] requests, [code]*[/code] is also allowed. For [constant HTTPClient.METHOD_CONNECT] requests, it should be the authority component ([code]host:port[/code]).
|
|
|
Headers are HTTP request headers. For available HTTP methods, see [enum Method].
|
|
|
To create a POST request with query strings to push to the server, do:
|
|
|
[codeblocks]
|
|
@@ -171,7 +171,7 @@
|
|
|
<param index="3" name="body" type="PackedByteArray" />
|
|
|
<description>
|
|
|
Sends a raw request to the connected host.
|
|
|
- The URL parameter is usually just the part after the host, so for [code]https://somehost.com/index.php[/code], it is [code]/index.php[/code]. When sending requests to an HTTP proxy server, it should be an absolute URL. For [constant HTTPClient.METHOD_OPTIONS] requests, [code]*[/code] is also allowed. For [constant HTTPClient.METHOD_CONNECT] requests, it should be the authority component ([code]host:port[/code]).
|
|
|
+ The URL parameter is usually just the part after the host, so for [code]https://example.com/index.php[/code], it is [code]/index.php[/code]. When sending requests to an HTTP proxy server, it should be an absolute URL. For [constant HTTPClient.METHOD_OPTIONS] requests, [code]*[/code] is also allowed. For [constant HTTPClient.METHOD_CONNECT] requests, it should be the authority component ([code]host:port[/code]).
|
|
|
Headers are HTTP request headers. For available HTTP methods, see [enum Method].
|
|
|
Sends the body data raw, as a byte array and does not encode it in any way.
|
|
|
</description>
|