예제 #1
0
 protected static function _post($url, $body, $headers = array(), $returnHTTPCode = false)
 {
     $result = Webservice::post($url, $body, $headers);
     if ($returnHTTPCode) {
         return $result['response'];
     }
     return $result['content'];
 }
예제 #2
0
 protected static function _post($url, $body, $headers = array())
 {
     $response = Webservice::post($url, $body, $headers);
     return ['code' => $response['response'], 'headers' => self::_parse_headers(isset($response['header']) ? $response['header'] : ''), 'body' => $response['content']];
 }