TDE core libraries
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DESIGN.metadata 7.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. METADATA
  2. ========
  3. Applications can provide "metadata" to the slaves. Metadata can influence
  4. the behavior of a slave and is usally protocol dependent. MetaData consists
  5. of two strings: a "key" and a "value".
  6. The following keys are currently in use:
  7. Key Value(s) Description
  8. ---- -------- -----------
  9. referrer string The URL from which the request originates. (read by http)
  10. modified string The modification date of the document (set by http)
  11. accept string List of mimetypes to accept separated by a ", ". (read by http)
  12. SendUserAgent bool Whether to send a User-Agent (read by http)
  13. UserAgent string The user agent name to send to remote host (read by http)
  14. content-type string The content type of the data to be uploaded (read by http)
  15. media-* string Media-Parameter attributes (e.g. media-boundary)
  16. cache "cache" Use entry from cache if available.
  17. "cacheonly" Do not do any remote lookups, fail if not in cache. (read by http)
  18. "verify" Use entry from cache, verify with remote server if expired
  19. "refresh" Use entry from cache after verifying with remote server
  20. "reload" Do not do any cache lookups.
  21. no-cache bool Flag that indicates whether caching is enabled/disabled
  22. window-id number winId() of the window the request is associated with.
  23. resume number Try to get the file starting at the given offset (set by TransferJob)
  24. charset string Charset of the current content as returned by a HTTP Header Response.
  25. Charsets string Charset(s) send in the "Accept-Charset:" HTTP Request Header.
  26. Languages string Language(s) send in the "Accept-Language:" HTTP Request Header.
  27. content-
  28. disposition string Suggested name to Save a file as as returned by a HTTP Header Response.
  29. request-id number Sequence number to identify requests in a MultiGet command.
  30. expire-date number Date on which a cache entry needs validation.
  31. cache-creation-date number Date on which a cache entry has been created.
  32. http-refresh string Passes HTTP Refresh meta-data back to the application.
  33. cookies "auto" Use kcookiejar to lookup and collect cookies (default)
  34. "manual" Cookies set in "setcookies" are send, received cookies are reported via "setcookies".
  35. "none" No cookies are send, received cookies are discarded.
  36. setcookies string Used to send/receive HTTP cookies when "cookies" is set to "manual".
  37. errorPage bool Flag that indicates that an errorPage() is preferred over an error(). (default:true)
  38. no-auth bool Flag that indicates that no authentication attempts should be made.
  39. no-auth-prompt bool Flag that indicates that only cached authentication tokens should be used.
  40. ssl_activate_warnings bool Flag that disables SSL warning dialogs if set to false. (default: true)
  41. ssl_was_in_use bool Flag to tell TCPSlaveBase if SSL was in use in the previous transaction. (default: false)
  42. ssl_in_use bool Set in TCPSlaveBase to tell the caller if SSL is in use. (default: assume false)
  43. ssl_using_client_cert bool Set in TCPSlaveBase to tell the caller if the session is using a client certificate (default: assume false)
  44. ssl_no_client_cert bool Flag to tell TCPSlaveBase if it should, under no circumstances, use a client certificate. (default: false)
  45. ssl_force_cert_prompt bool Flag to tell TCPSlaveBase to force the client certificate dialog to appear on this connection. ssl_no_client_cert overrides this flag. This does not force the user to actually choose a certificate. (default: false)
  46. ssl_demand_certificate bool Flag to tell TCPSlaveBase to demand that a client certificate is used for this connection. (default: false)
  47. ssl_militant bool Flag to tell TCPSlaveBase "do it right, or don't do it at all". This means that if the certificate check or any other security test fails, just silently fail the connection. This is of particular use to favicon code. (default: false)
  48. ssl_cipher string Set in TCPSlaveBase to tell the caller which cipher is currently being used.
  49. ssl_cipher_desc string Set in TCPSlaveBase to describe the details of the current cipher being used.
  50. ssl_cipher_version string Set in TCPSlaveBase to describe the version of the cipher being used.
  51. ssl_cipher_used_bits integer Set in TCPSlaveBase to relay the number of bits of the key actually being used in this cipher and connection.
  52. ssl_cipher_bits integer Set in TCPSlaveBase to relay the number of bits the key is capable of in this cipher and connection.
  53. ssl_peer_ip string Set in TCPSlaveBase to tell the caller the IP address of the peer.
  54. ssl_cert_state integer Set in TCPSlaveBase to relay the state of the certificate check, without considering the cache settings. Can be checked with KSSLCertificate enumeration.
  55. ssl_peer_certificate string Set in TCPSlaveBase to relay the base64 encoding of the X.509 certificate presented by the peer.
  56. ssl_peer_chain string Set, if present, in TCPSlaveBase to relay the entire certificate chain presented by the peer. The is base64 encoded and \n delimited.
  57. ssl_action string Set in TCPSlaveBase to determine what the user wishes to do about the connection. Enumerated to {"accept", "reject"} currently.
  58. ssl_parent_ip string Set in TCPSlaveBase and in the caller. If this is the parent frame of a frame of the session (really only applies to https), this variable is set so that it can be passed back to the child frames. It is necessary to send it to child frames so that they can do a full certificate check.
  59. ssl_parent_cert string Set in TCPSlaveBase and in the caller. As above, this must be passed to child frames by the caller so that it can compare against the certificate presented in the child frames. It is a base64 encoding of the X.509 presented.
  60. ssl_session_id string Set in TCPSlaveBase to indicate the SSL session ID in base64 encoded ASN.1 encoded binary format. Also set in the caller to indicate to TCPSlaveBase to reuse a particular session ID.
  61. ssl_proxied bool Presently exists only if true. Set in TCPSlaveBase to indicate that a proxy is in use for this SSL connection.
  62. main_frame_request bool Actually for SSL, this is set in the caller to tell TCPSlaveBase if this is the request for the main frame of an html page. (dfault: true)
  63. HTTP-Version string The HTTP version in use for tdeio_http (set by http)
  64. PropagateHttpHeader bool Whether HTTP headers should be send back (read by http)
  65. HTTP-Headers string The HTTP headers, concatenated, \n delimited (set by http)
  66. Requires PropagateHttpHeader to be set.
  67. PrivacyPolicy stringlist \n delimited URIs referring to P3P privacy
  68. policies presented by the HTTP server
  69. PrivacyCompactPolicy stringlist \n delimited P3P compact tag policies
  70. presented by the HTTP server
  71. textmode bool When true, switches FTP up/downloads to ascii transfer mode (read by ftp)
  72. DefaultRemoteProtocol string Protocol to redirect file://<hostname>/ URLs to, default is "smb" (read by file)
  73. ** NOTE: Anything in quotes ("") under Value(s) indicates literal value.
  74. Examples:
  75. E.g. the following disables cookies:
  76. job = TDEIO::get( KURL("http://www.kde.org"), false, false);
  77. job->addMetaData("cookies", "none");
  78. If you want to handle cookies yourself, you can do:
  79. job = TDEIO::get( KURL("http://www.kde.org"), false, false);
  80. job->addMetaData("cookies", "manual");
  81. job->addMetaData("setcookies", "Cookie: foo=bar; gnat=gnork");
  82. The above sends two cookies along with the request, any cookies send back by
  83. the server can be retrieved with job->queryMetaData("cookies") after
  84. receiving the mimetype() signal or when the job is finished.
  85. The cookiejar is not used in this case.