protected static function _post($url, $body, $headers = array(), $returnHTTPCode = false) { $result = Webservice::post($url, $body, $headers); if ($returnHTTPCode) { return $result['response']; } return $result['content']; }
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']]; }