<http url="url" method="method" charset="charset" cookie-policy="cookie_policy" username="username" password="password" multipart="multipart"> body that might contain http-param and/or http-header elements </http>
Name | Required | Default | Description |
---|---|---|---|
url | yes | HTTP request URL. | |
method | no | get | HTTP method: get or post |
charset | no | [Default charset for config] | Defines encoding of the HTTP response content. Has no effect if content type is binary. |
cookie-policy | no | [Default cookie policy of the HTTP client] | Specifies the way how HTTP client manages cookies. Allowed values are: browser, ignore, netscape, rfc_2109 and default. |
username | no | Specifies username if URL requires authentication. | |
password | no | Specifies password if URL requires authentication. | |
multipart | no | no | Tells if form is multipart encoded (enabling data upload). |
<xpath expression="data(//script)"> <html-to-xml> <http url="http://www.yahoo.com/"/> </html-to-xml> </xpath>
The content of www.yahoo.com is downloaded, transformed to XML and then all scripts inside the page are found.