Configuration

web::config

web::config key ?value?

If value is ommitted, the current value of key is returned. Note that unlike the set command web::config always returns the value for the given key before the new value is set. This allows to keep the old value and set it back later.

uploadfilesize ?size?
Sets the maximum number of bytes that will be saved, when files are uploaded in a multipart form. Default: 0.
cmdparam ?name?
Name of the web::command parameter in the URL. Default: "cmd".
timeparam ?name?
Name of the timestamp parameter in the URL. Default: "t".
cmdurltimestamp ?0|1?
Defines whether the timestamp should be included in URLs generated by web::cmdurl. Default: 1
logsubst ?boolean?
Turns substitution of log messages on or off. Default: off.
putxmarkup ?brace|tag?
Sets the markup characters for sections to be eval'd in web::putx and web::putxfile commands to either curly braces ({ ... }) or special tags (<? ... ?>). Default: brace.
version
Returns the version info string.
copyright
Returns a copyright message string.
encryptchain ?list?
Defines which commands should be tried, in sequence, to encrypt a message. Default: "web::encryptd".
decryptchain ?list?
Defines which commands should be tried, in sequence, to decrypt a message. Default: "web::decryptd".
filepermissions ?permissions?
Defines the file permissions of files that Websh creates. This affects the creation of log files, filecounters, session files, and temporary files created when files are uploaded in multipart forms (see web::formvar). Default is 0644.

Example 1. web::config

% web::config decryptchain
web::encryptd
% web::config filepermissions
0644
%