CloseHandle VI

Owning Palette: HTTP Client VIs

Requires: Base Development System

Closes the client handle and deletes all stored cookies, authentication credentials, and HTTP headers associated with the client handle. This VI also terminates all HTTP connections and logs out of any authentication, if applicable.

Details  

 Add to the block diagram  Find on the palette
client handle specifies the client handle to associate 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 in describes error conditions that occur before this node runs. This input provides standard error in functionality.
error out contains error information. This output provides standard error out functionality.

CloseHandle Details

The following screenshot shows code that performs the following:

  1. The OpenHandle VI opens a client handle and a client-side cookie that can store persistent data.
  2. The AddHeader VI adds a new header field line that sets the preferred language for subsequent Web requests associated with the client handle.
  3. The GET VI performs a Web request that includes the Accept-Language header.
  4. The CloseHandle VI closes the client handle and deletes any persistent data, including headers.