returns client ip address as dotted decimal in a Javascript string. If you set an attribute to null or an empty string, the attribute will be deleted. it will still set the attribute "User-Agent". The attribute name is the proper mixed-case name of the header (e.g. returns a Javascript object which contains all the request headers. Var s = gb.request.baseContentType // Content-type without any semicolon-options. S = "application/x-www-form-urlencoded" // Typically null. Var s = gb.ntentType // The full content-type of the *request*, not the response. Var s = gb.thod // Changing the method easily breaks everything. Var s = gb.request.urlQuery // only the query path of the URL, excl. the host and port, separated by colon. Var s = gb.request.url // the full URL of the request keyword rules: defined, but read-only as the request is never forwarded to a web-server.transformation rules: defined, but read-only as the request already has been executed.request-modification rules: defined and modifiable.OBS: the result includes single quotes. jsEncode("Hello, D'Angleterre") -> "'Hello, D\x27Angleterre'" encode a string to be a Javascript string token: gb.urlDecode("Hello, D'Angleterre") -> "Hello, D'Angleterre" decodes a string with %-escapes: opposite of gb.urlEncode() Var html = gb.htmlEncode("Paul
0 Comments
Leave a Reply. |