Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

CGI VIs

LabVIEW Internet Toolkit 6.0.2 Help
June 2008

NI Part Number:
370014C-01

»View Product Info

Owning Palette: Internet Toolkit VIs

Installed With: Internet Toolkit. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.

Use the CGI VIs to build and execute CGI applications, to publish front panel images to the Web, and to maintain client-state information with HTTP cookies.

The VIs on this palette can return HTTP error codes.

Palette ObjectDescription
CGI Add Params To CookieAdds all entries in the params keyed array except the Magic_Cookie entry to the cookie input.
CGI Build Cookie DocumentReplaces placeholder text in an HTML document with a cookie ID.
CGI Build UNIX PathBuilds a UNIX-style path from the base path and absolute or relative path inputs.
CGI Build URL-Encoded Param StringBuilds a URL-encoded parameter list from a keyed array. Use this VI to build the parameters for a link to a CGI application.
CGI CookieReturns a cookie using the REMOTE_ADDR environmental variable in the env input and cookie information in the params input. If a cookie does not exist, the VI creates one.
CGI Escape HTTP ParamEncodes characters in URL format, replacing all characters except for alphanumeric and underscore with %xx, where xx is the hexadecimal value of the character.
CGI Get InfoReturns path and name information about a CGI VI you are invoking. Use these values when a CGI VI builds an HTML document that contains links back to the VI.
CGI Get Panel ImageTakes a snapshot of a front panel and returns it in the format specified by the params input.
CGI Get Panel JPEG ImageTakes a snapshot of a front panel and returns it in JPEG format.
CGI Get Panel PNG ImageTakes a snapshot of a front panel and returns it in PNG format.
CGI Get Query Client Side CookiesReturns the client-side cookies the browser sends, which contain the contents of the HTTP_COOKIE environmental variable in the env keyed array.
CGI Get Query ParametersReturns the parameters that a CGI request contains. If the request contains a single parameter, the calling VI must use query string. If the request contains a list of parameters, the calling VI must use query params.
CGI IP Name To NamesReturns the IP and DNS address of the Internet address that name specifies.
CGI Parse URL-Encoded Param StringReturns the contents of a URL-encoded parameter list string in a keyed array.
CGI Path To UnixConverts a platform-specific path to a string containing the path in UNIX style.
CGI Script Relative PathComputes a path relative to the location of a CGI VI.
CGI Set Client Side CookieConstructs a Set-Cookie: reply header line that specifies a client-side cookie to store. The VI URL-encodes the cookie name and contents in the header.
CGI Set Multiple Client Side CookiesConstructs Set-Cookie: reply header lines that specify multiple client-side cookies to store. The VI URL-encodes cookie names and contents.
CGI Spool CookieReturns the cookie associated with a specific CGI spool connection. If a cookie does not exist for the connection, the VI creates one.
CGI Translate Virtual PathConverts a virtual path to an absolute path. A virtual path is the location of a file on a specific server, viewed by remote clients accessing the file.
CGI Unescape HTTP ParamDecodes characters from URL format, replacing the plus (+) character with white space and the %xx sequence with the character that corresponds to the hexadecimal value xx.
CGI Unix To PathConverts a string consisting of a UNIX-style path to a platform-specific path.


SubpaletteDescription
CGI Template VIsUse CGI Template VIs to build CGI applications and to customize CGI VIs.
Cookie VIsUse the Cookie VIs to create, edit, and delete HTTP cookies.
HTML VIsUse the HTML VIs to create and edit HTML tags and documents in LabVIEW.
Keyed Array VIsUse the Keyed Array VIs to create keyed arrays, in which two arrays link to each other and have values in sync. The Internet Toolkit uses keyed arrays to organize information such as cookie IDs.

Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit