OpenHandle VI
- Updated2025-07-30
- 3 minute(s) read
Opens a client handle. Use client handles to wire together multiple HTTP Client VIs while preserving authentication credentials, HTTP headers, and cookies. You can specify a username and password, if necessary, to send Web requests to a server that requires authentication. You also can create a cookie file that stores data across multiple Web requests.

Inputs/Outputs
cookie file
—
username
—
username specifies the log-in username for the HTTP server you created earlier.
password
—
password specifies the log-in password for the HTTP server.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
verify server(true)
—
verify server (true) specifies whether to verify the server's identity and establish a secure connection. Use this control to allow HTTP Client VIs to communicate using the https:// protocol. The default value is TRUE.
client handle out
—
client handle out returns the client handle associated with the Web request. Use client handles to wire together multiple HTTP Client VIs while preserving authentication credentials, HTTP headers, and cookies. Client handles are not required when making independent Web requests without persistent data such as headers or credentials.
error out
—
error out contains error information. This output provides standard error out functionality. |
Client handles increase network efficiency by limiting the number of network sockets and ports necessary to perform multiple Web requests. Client handles are not required when making independent Web requests without persistent data such as headers or credentials.
The following screenshot shows code that performs the following:
- The OpenHandle VI opens a client handle and a client-side cookie that can store persistent data.
- The AddHeader VI adds a new header field line that sets the preferred language for subsequent Web requests associated with the client handle.
- The GET VI performs a Web request that includes the Accept-Language header.
- The CloseHandle VI closes the client handle and deletes any persistent data, including headers.
cookie file
—
username
—
error in (no error)
—
verify server(true)
—
client handle out
—
error out
—