|
@@ -6,6 +6,7 @@
|
|
|
<description>
|
|
|
A node with the ability to send HTTP requests. Uses [HTTPClient] internally.
|
|
|
Can be used to make HTTP requests, i.e. download or upload files or web content via HTTP.
|
|
|
+ [b]Warning:[/b] See the notes and warnings on [HTTPClient] for limitations, especially regarding SSL security.
|
|
|
[b]Example of contacting a REST API and printing one of its returned fields:[/b]
|
|
|
[codeblock]
|
|
|
func _ready():
|
|
@@ -64,8 +65,6 @@
|
|
|
add_child(texture_rect)
|
|
|
texture_rect.texture = texture
|
|
|
[/codeblock]
|
|
|
- [b]Note:[/b] When performing HTTP requests from a project exported to HTML5, keep in mind the remote server may not allow requests from foreign origins due to [url=https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS]CORS[/url]. If you host the server in question, you should modify its backend to allow requests from foreign origins by adding the [code]Access-Control-Allow-Origin: *[/code] HTTP header.
|
|
|
- [b]Note:[/b] SSL/TLS support is currently limited to TLS 1.0, TLS 1.1, and TLS 1.2. Attempting to connect to a TLS 1.3-only server will return an error.
|
|
|
</description>
|
|
|
<tutorials>
|
|
|
<link>https://docs.godotengine.org/en/3.3/tutorials/networking/http_request_class.html</link>
|