2014-11-13 01:04:59 +02:00
|
|
|
METADATA
|
|
|
|
========
|
|
|
|
|
|
|
|
Applications can provide "metadata" to the slaves. Metadata can influence
|
|
|
|
the behavior of a slave and is usally protocol dependent. MetaData consists
|
|
|
|
of two strings: a "key" and a "value".
|
|
|
|
|
|
|
|
Please note that when internal meta-data values are sent back to ioslaves, the
|
|
|
|
keyword used to mark them internal will be stripped from the key name.
|
|
|
|
|
|
|
|
The following keys are currently in use:
|
|
|
|
|
|
|
|
Key Value(s) Description
|
|
|
|
---- -------- -----------
|
|
|
|
|
2022-05-13 17:13:51 +03:00
|
|
|
modified string The modification date of the document (set by kio before put)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2024-03-29 09:52:05 +02:00
|
|
|
accept string List of mimetypes to accept separated by a ", ". (read by curl)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2024-03-29 09:52:05 +02:00
|
|
|
UserAgent string The user agent name to send to remote host (read by curl)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
window-id number winId() of the window the request is associated with.
|
|
|
|
|
2022-02-18 19:46:04 +02:00
|
|
|
resume number Try to get the file starting at the given offset (set by file_copy
|
|
|
|
when finding a .part file, but can also be set by apps.)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2024-05-02 22:19:07 +03:00
|
|
|
Charset string Charset(s) send in the "Accept-Charset:" HTTP Request Header.
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
Languages string Language(s) send in the "Accept-Language:" HTTP Request Header.
|
|
|
|
|
2023-09-16 13:46:36 +03:00
|
|
|
Authorization string Authorization send in the "Authorization:" HTTP Request Header.
|
|
|
|
|
2022-02-18 19:46:04 +02:00
|
|
|
no-auth bool Flag that indicates that no authentication (neither WWW nor proxy)
|
|
|
|
attempts should be made.
|
|
|
|
no-www-auth bool Flag that indicates that no HTTP WWW authentication attempts should
|
|
|
|
be made.
|
|
|
|
no-proxy-auth bool Flag that indicates that no HTTP proxy authentication attempts
|
|
|
|
should be made.
|
|
|
|
no-auth-prompt bool Flag that indicates that only cached authentication tokens should
|
|
|
|
be used.
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2022-02-18 19:46:04 +02:00
|
|
|
recurse bool When true, del() will be able to delete non-empty directories.
|
|
|
|
Otherwise, del() is supposed to give an error on non-empty
|
|
|
|
directories. (read by file)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2022-06-03 14:58:05 +03:00
|
|
|
DefaultRemoteProtocol string Protocol to redirect file://<hostname>/ URLs to, default is "sftp"
|
2022-02-18 19:46:04 +02:00
|
|
|
(read by file)
|
|
|
|
redirect-to-get bool If "true", changes a redrirection request to a GET operation
|
|
|
|
regardless of the original operation.
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
** NOTE: Anything in quotes ("") under Value(s) indicates literal value.
|
|
|
|
|
|
|
|
|
|
|
|
Examples:
|
|
|
|
|
2024-03-20 08:38:45 +02:00
|
|
|
E.g. the following turns redirect into get request:
|
2014-11-13 01:04:59 +02:00
|
|
|
job = KIO::get( KUrl("http://www.kde.org") );
|
2024-03-20 08:38:45 +02:00
|
|
|
job->addMetaData("redirect-to-get", "true");
|