tailieunhanh - HandBooks Professional Java-C-Scrip-SQL part 257

Tham khảo tài liệu 'handbooks professional java-c-scrip-sql part 257', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Logs in to the server. The following hash options may be specified. Key Function Name Username Password Password str Sends str to the server performing Telnet protocol translation. Returns true if Telnet mode is enabled. bool Sets Telnet mode on or off. options Waits for a response from the server. The same hash options may specified as with . str Sends str to the server without performing Telnet protocol translation. CGI CGI support class CGI provides useful features to implement Common Gateway Interface CGI programs such as retrieving CGI data from server manipulating cookies and generating the HTTP header and the HTML body. Example require cgi cgi CGI new html3 input cgi input if input input CGI unescape input end p input begin value Thread new SAFE 4 eval input . rescue SecurityError value Sorry you can t do this end Walter s Web Arithmetic Page post cgi-bin input your favorite expression input input the result of you input CGI escapeHTML value Required Library require cgi Class Methods CGI new level query Creates a CGI object. level may be one of the following options. If one of the HTML levels is specified the following methods are defined for generating output conforming to that level query No HTML output generated html3 html4 Strict html4Tr Transitional html4Fr Frameset CGI escape str Escapes an unsafe string using URL-encoding. CGI unescape str Expands a string that has been escaped using URL-encoding. CGI escapeHTML str Escapes HTML special characters including . CGI unescapeHTML str Expands escaped HTML special characters including . CGI escapeElement str element. Escapes HTML special characters in the specified HTML elements. CGI unescapeElement str element element.

TÀI LIỆU LIÊN QUAN
10    158    1
6    184    1
7    162    1
5    157    1
6    160    1
6    152    1
6    150    1
6    206    1
7    154    1