Extension:Webservice

This extension allows you to easily include information from an external webservice into a wiki page. For instance, you could pull data from a web page, an XML feed, etc.

This is currently experimental and will likely be expanded a great deal, although the basic syntax should remain. It requires an internal version of tidy and PHP5. I'll likely add external Tidy and pre PHP5 support at some point.

Usage
This is a function extension primarily, and takes three parameters (in order):
 * URL:The full url of the webservice that you wish to use
 * Wikitext: The wikitext to insert into the page--additionally, anything between % signs will be replaced with the result of executing that text as an XPath string on the document returned from the URL.
 * Options: Currently, there are three possible options:
 * IE  - Impersonate Internet Explorer (by changing the user-agent)
 * TIDY-XHTML - Run tidy on the document returned from the URL, converting it to XHTML
 * COOKIE:key=value - Insert a cookie specified by the key and value into the request headers

Installation

 * 1) Create a directory called Webservice in your extensions directory
 * 2) Download webservice.php into your Webservice directory

Parameters
If you are behind a proxy (i.e. you have set  in  ), you can set an additional variable   which is an array of URL patterns to exclude from the proxy. For example: would exclude any URLs that end in key.com, keybank.com or mdd.com.