include/SugarHttpClient.php

Show: inherited
Table of Contents

\SugarHttpClient

Package: SugarCRM

Very basic HTTP client

Api
Used in various places of the code and can be mocked out. Presently does only one op - POST to url. If you need more complex stuff, use Zend_Http_Client  

Properties

Propertyprotected  $last_error= ''''
Default value''Details
Type
n/a

Methods

methodpubliccallRest( string $url, string $postArgs ) : void

sends POST request to REST service via CURL

Parameters
Name Type Description
$url string

URL to call

$postArgs string

POST args

methodpublicgetLastError( ) : string

Returns code of last error that happened to the client

Returns
Type Description
string
Documentation was generated by DocBlox 0.18.1.