Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/kernel/globals.php
Show First 20 Lines • Show All 312 Lines • ▼ Show 20 Line(s) | |||||
* @return string | * @return string | ||||
* @access public | * @access public | ||||
* @deprecated | * @deprecated | ||||
*/ | */ | ||||
public static function curl_post($url, $data, $headers = NULL, $request_type = 'POST', $curl_options = NULL) | public static function curl_post($url, $data, $headers = NULL, $request_type = 'POST', $curl_options = NULL) | ||||
{ | { | ||||
$application =& kApplication::Instance(); | $application =& kApplication::Instance(); | ||||
/** @var kCurlHelper $curl_helper */ | |||||
$curl_helper = $application->recallObject('CurlHelper'); | $curl_helper = $application->recallObject('CurlHelper'); | ||||
/* @var $curl_helper kCurlHelper */ | |||||
if ($request_type == 'POST') { | if ($request_type == 'POST') { | ||||
$curl_helper->SetRequestMethod(kCurlHelper::REQUEST_METHOD_POST); | $curl_helper->SetRequestMethod(kCurlHelper::REQUEST_METHOD_POST); | ||||
} | } | ||||
$curl_helper->SetRequestData($data); | $curl_helper->SetRequestData($data); | ||||
if (!is_null($headers)) { | if (!is_null($headers)) { | ||||
▲ Show 20 Lines • Show All 746 Lines • Show Last 20 Lines |