Click or drag to resize

HTTPClientConnectToHost Method

Connects to a host. This needs to be done before any requests are sent.

The host should not have http:// prepended but will strip the protocol identifier if provided.

If no port is specified (or -1 is used), it is automatically set to 80 for HTTP and 443 for HTTPS (if use_ssl is enabled).

verify_host will check the SSL identity of the host if set to true.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Error ConnectToHost(
	string host,
	int port = -1,
	bool useSsl = false,
	bool verifyHost = true
)

Parameters

host
Type: SystemString

[Missing <param name="host"/> documentation for "M:Godot.HTTPClient.ConnectToHost(System.String,System.Int32,System.Boolean,System.Boolean)"]

port (Optional)
Type: SystemInt32

[Missing <param name="port"/> documentation for "M:Godot.HTTPClient.ConnectToHost(System.String,System.Int32,System.Boolean,System.Boolean)"]

useSsl (Optional)
Type: SystemBoolean

[Missing <param name="useSsl"/> documentation for "M:Godot.HTTPClient.ConnectToHost(System.String,System.Int32,System.Boolean,System.Boolean)"]

verifyHost (Optional)
Type: SystemBoolean

[Missing <param name="verifyHost"/> documentation for "M:Godot.HTTPClient.ConnectToHost(System.String,System.Int32,System.Boolean,System.Boolean)"]

Return Value

Type: Error

[Missing <returns> documentation for "M:Godot.HTTPClient.ConnectToHost(System.String,System.Int32,System.Boolean,System.Boolean)"]

See Also