All pastes #572687 Raw Edit

Mine

public php v1 · immutable
·published 2007-06-17 20:08 UTC
rendered paste body
	function Call($POST) {		$this->SESSION = curl_init($this->API_URI);		curl_setopt($this->SESSION, CURLOPT_POST, true);		curl_setopt($this->SESSION, CURLOPT_POSTFIELDS, $POST);		curl_setopt($this->SESSION, CURLOPT_RETURNTRANSFER, true);		curl_setopt($this->SESSION, CURLOPT_HEADER, false);		curl_setopt($this->SESSION, CURLOPT_RETURNTRANSFER, true);		$response = curl_exec($this->SESSION);		$status_code = array();		preg_match('/\d\d\d/', $response, $status_code);		$this->RESPONSE = $status_code;		curl_close($this->SESSION);	}