Exemplo n.º 1
0
	public static function post ($url, $data) {
		$worker = new Http(array(
			CURLOPT_POST => 1,
			CURLOPT_POSTFIELDS => $data
		), array(
			'Content-Type' => 'text/plain'
		));
		$worker->add($url)->exec();

		return $worker->get($url);
	}