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
public Error ConnectToHost( string host, int port = -1, bool useSsl = false, bool verifyHost = true )
[Missing <param name="host"/> documentation for "M:Godot.HTTPClient.ConnectToHost(System.String,System.Int32,System.Boolean,System.Boolean)"]
[Missing <param name="port"/> documentation for "M:Godot.HTTPClient.ConnectToHost(System.String,System.Int32,System.Boolean,System.Boolean)"]
[Missing <param name="useSsl"/> documentation for "M:Godot.HTTPClient.ConnectToHost(System.String,System.Int32,System.Boolean,System.Boolean)"]
[Missing <param name="verifyHost"/> documentation for "M:Godot.HTTPClient.ConnectToHost(System.String,System.Int32,System.Boolean,System.Boolean)"]
[Missing <returns> documentation for "M:Godot.HTTPClient.ConnectToHost(System.String,System.Int32,System.Boolean,System.Boolean)"]