* @returns mixed (bool)false on failure or a string on success
*/
public static function request( $method, $url, $options = array() ) {
+ $url = wfExpandUrl( $url );
wfDebug( "HTTP: $method: $url" );
$options['method'] = strtoupper( $method );
if ( !isset( $options['timeout'] ) ) {
return $this->content;
}
+ /**
+ * Set the parameters of the request
+ * @param $params array
+ * @todo overload the args param
+ */
+ public function setData($args) {
+ $this->postData = $args;
+ }
+
/**
* Take care of setting up the proxy
* (override in subclass)
public function execute() {
global $wgTitle;
+ $this->content = "";
+
if( strtoupper($this->method) == "HEAD" ) {
$this->headersOnly = true;
}