예제 #1
0
 /**
  * @param null $url
  * @param null $post
  */
 public function sendRequest($url = null, $post = null)
 {
     curl_setopt($this->getHandler(), CURLINFO_HEADER_OUT, true);
     parent::sendRequest($url, $post);
     $this->outputFile();
 }
예제 #2
0
 /**
  * @return array
  */
 public function parseResponse()
 {
     $response = parent::parseResponse();
     $response = json_decode($response, true);
     return $response;
 }