public function curlPOSTauth($curlUrl, $post)
  {

    // Remove authentication until POST to /api/v1/auth/login is resolved
    if (!isset($this->auth)) {
       $this->authenticate();
    }

    $results = $this->curlPOST($curlUrl, $post, true);

    $this->statHat->ezCount('MB_Toolbox: MB_Toolbox_cURL: curlPOSTauth', 1);

    return $results;
  }
public function curlPOSTauth($curlUrl, $post)
  {

    // Remove authentication until POST to /api/v1/auth/login is resolved
    if (!isset($this->auth)) {
       $this->authenticate();
    }

    $results = $this->curlPOST($curlUrl, $post, true);

    $this->statHat->ezCount('MB_Toolbox: MB_Toolbox_cURL: curlPOSTauth', 1);

    return $results;
  }
public function curlPOSTauth ( $ curlUrl , $ post ) { // Remove authentication until POST to /api/v1/auth/login is resolved if ( ! isset ( $ this -> auth ) ) { $ this -> authenticate ( ) ; } $ results = $ this -> curlPOST ( $ curlUrl , $ post , true ) ; $ this -> statHat -> ezCount ( 'MB_Toolbox: MB_Toolbox_cURL: curlPOSTauth' , 1 ) ; return $ results ; }
cURL POSTs with authentication

@param string $curlUrl
The URL to POST to. Include domain and path.
@param array $post
The values to POST.

@return object $result
The results returned from the cURL call.
cURL POSTs with authentication