Warning, /frameworks/kio/docs/metadata.txt is written in an unsupported language. File is not indexed.

0001 METADATA
0002 ========
0003 
0004 Applications can provide "metadata" to the workers. Metadata can influence
0005 the behavior of a worker and is usually protocol dependent. MetaData consists
0006 of two strings: a "key" and a "value".
0007 
0008 Any meta data whose "key" starts with the keywords {internal~currenthost} and
0009 "{internal~allhosts}" will be treated as internal metadata and will not be made
0010 available to client applications. Instead all such meta-data will be stored and
0011 sent back to the appropriate KIO workers along with the other regular metadata values.
0012 
0013 Use "{internal~currenthost}" to make the internal metadata available to all
0014 KIO workers of the same protocol and host as the workers that generated it. If
0015 you do not want to restrict the availability of the internal metadata to only
0016 the current host, then use {internal~allhosts}. In either case the internal
0017 metadata follows the rules of the regular metadata and therefore cannot be sent
0018 from one protocol such as "http" to a completely different one like "ftp".
0019 
0020 Please note that when internal meta-data values are sent back to KIO workers, the
0021 keyword used to mark them internal will be stripped from the key name.
0022 
0023 The following keys are currently in use:
0024 
0025 Key             Value(s)        Description
0026 ----            --------        -----------
0027 
0028 referrer        string          The URL from which the request originates. (read by http)
0029 
0030 accept          string          List of MIME types to accept separated by a ", ". (read by http)
0031 
0032 responsecode    string          Original response code of the web server. (set by http)
0033 
0034 UserAgent       string          The user agent name to send to remote host (read by http)
0035 
0036 content-type    string          The content type of the data to be uploaded (read and set by http)
0037 
0038 window-id       number          winId() of the window the request is associated with.
0039 
0040 range-start     number          Try to get the file starting at the given offset (set by file_copy when finding a .part file,
0041                                                                                   but can also be set by apps.)
0042 
0043 range-end       number          Try to get the file until at the given offset (not set in kdelibs; handled by kio_http).
0044 
0045 resume          number          Deprecated compatibility name for range-start
0046 resume_until    number          Deprecated compatibility name for range-end
0047 
0048 content-disposition-type        string Type of Content-Disposition from a HTTP Header Response.
0049 content-disposition-*           any other valid value sent in a Content-Disposition header (e.g. filename)
0050 
0051 cookies         "manual"        Cookies set in "setcookies" are send, received cookies are reported
0052                                 via "setcookies".
0053                 "none"          No cookies are sent, received cookies are discarded (default).
0054 
0055 setcookies      string          Used to send/receive HTTP cookies when "cookies" is set to "manual".
0056 
0057 errorPage       bool            Flag that indicates that an errorPage() is preferred over an error().                                      (default:true)
0058 
0059 no-www-auth     bool            Flag that indicates that no HTTP WWW authentication attempts should be made.
0060 no-proxy-auth   bool            Flag that indicates that no HTTP proxy authentication attempts should be made.
0061 no-auth-prompt  bool            Flag that indicates that only cached authentication tokens should be used.
0062 
0063 ssl_no_ui       bool            Flag to tell TCPworkerBase that no user interaction should take place. Instead of asking security questions the connection will silently fail. This is of particular use to favicon code. (default: false)
0064 
0065 PropagateHttpHeader     bool    Whether HTTP headers should be send back (read by http)
0066 
0067 HTTP-Headers            string  The HTTP headers, concatenated, \n delimited (set by http)
0068                                 Requires PropagateHttpHeader to be set.
0069 
0070 customHTTPHeader        string  Custom HTTP headers to add to the request (read by http)
0071 
0072 UseProxy                string  URL representing the proxy settings (read by http)
0073 ProxyUrls               string  a comma separated list of proxy urls. The first url in this list matches one set in "UseProxy".
0074 
0075 textmode                bool    When true, switches FTP up/downloads to ascii transfer mode (read by ftp)
0076 
0077 recurse                 bool    When true, del() will be able to delete non-empty directories.  (read by file)
0078                                 Otherwise, del() is supposed to give an error on non-empty directories.
0079 
0080 DefaultRemoteProtocol   string  Protocol to redirect file://<hostname>/ URLs to, default is "smb" (read by file)
0081 redirect-to-get         bool    If "true", changes a redrirection request to a GET operation regardless of the original operation.
0082 
0083 ** NOTE: Anything in quotes ("") under Value(s) indicates literal value.
0084 
0085 
0086 Examples:
0087 
0088 E.g. the following disables cookies:
0089 job = KIO::get( QUrl("http://www.kde.org") );
0090 job->addMetaData("cookies", "none");
0091 
0092 If you want to handle cookies yourself, you can do:
0093 job = KIO::get( QUrl("http://www.kde.org") );
0094 job->addMetaData("cookies", "manual");
0095 job->addMetaData("setcookies", "Cookie: foo=bar; gnat=gnork");
0096 
0097 The above sends two cookies along with the request, any cookies send back by
0098 the server can be retrieved with job->queryMetaData("cookies") after
0099 receiving the mimetype() signal or when the job is finished.
0100 
0101 The cookiejar is not used in this case.