os:execute element
Describes a service that acts on selected text or document element.
Usage
<os:execute
action = "sAction"
accept-charset = "sCharset"
enctype = "sEnclosureType"
method = "sMethod">
child elements
</os:execute>
Attributes
Attribute | Type | Required | Description |
---|---|---|---|
accept-charset |
sCharset |
No |
Any valid character set name. If not specified, the following is assumed: utf-8 Default. UTF-8. |
action |
sAction |
Yes |
A URL template that specifies the target of this request. The template can contain replaced variables. |
enctype |
sEnclosureType |
No |
A content type for form data. application/x-www-form-urlencoded Default. Name/value pairs, with specific rules for encoding non-ASCII and reserved characters. multipart/form-data Submission is multipart MIME, suitable for binary data. Only valid with POST request. |
method |
sMethod |
No |
The HTTP request method to use. Case-insensitive. GET Default. Sends data as URL parameters. Appends os:parameter elements to the URL template. POST Send data as name/value pairs in the body of the request. |
Child elements
Element |
---|
Child element sequence
os:parameter
Parent elements
Element |
---|
Remarks
When using the GET method to send data, the amount of data is limited to 2048 bytes.
This element is required.
Examples
The following os:execute element describes the service ineteraction using URL parameters and replaced variables. See os:parameter for a complete list of variables.
<os:execute method="get"
action="http://example.com/submit.aspx?url={documentUrl}&title={documentTitle?}" />
Element information
Minimum supported system |
Windows XP with SP2 |
Can be empty | No |