FreenetIS
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
Vtiger_HTTP_Client Class Reference
Inheritance diagram for Vtiger_HTTP_Client:
Curl_HTTP_Client

Public Member Functions

 __construct ($url)
 Curl_HTTP_Client constructor.
 doPost ($postdata=false, $decodeResponseJSON=false, $timeout=20)
 doGet ($getdata=false, $decodeResponseJSON=false, $timeout=20)
 __jsondecode ($indata)
 __jsonencode ($indata)
- Public Member Functions inherited from Curl_HTTP_Client
 init ()
 Init Curl session public.
 set_credentials ($username, $password)
 Set username/pass for basic http auth.
 set_referrer ($referrer_url)
 Set referrer.
 set_user_agent ($useragent)
 Set client's useragent.
 include_response_headers ($value)
 Set to receive output headers in all output functions.
 set_proxy ($proxy)
 Set proxy to use for each curl request.
 send_post_data ($url, $postdata, $ip=null, $timeout=10)
 Send post data to target URL return data returned from url or false if error occured.
 fetch_url ($url, $ip=null, $timeout=5)
 fetch data from target URL return data returned from url or false if error occured
 fetch_into_file ($url, $fp, $ip=null, $timeout=5)
 Fetch data from target URL and store it directly to file.
 send_multipart_post_data ($url, $postdata, $file_field_array=array(), $ip=null, $timeout=30)
 Send multipart post data to the target URL return data returned from url or false if error occured (contribution by vule nikolic, vule@.nosp@m.dink.nosp@m.e.net)
 store_cookies ($cookie_file)
 Set file location where cookie data will be stored and send on each new request.
 set_cookie ($cookie)
 Set custom cookie.
 get_effective_url ()
 Get last URL info usefull when original url was redirected to other location public.
 get_http_response_code ()
 Get http response code public.
 get_error_msg ()
 Return last error message and error number.
 close ()
 Close curl session and free resource Usually no need to call this function directly in case you do you have to call init() to recreate curl public.

Public Attributes

 $_serviceurl = ''
- Public Attributes inherited from Curl_HTTP_Client
 $ch
 $debug = false
 $error_msg

Constructor & Destructor Documentation

Vtiger_HTTP_Client::__construct (   $debug)

Curl_HTTP_Client constructor.

Parameters
booleandebug public

Reimplemented from Curl_HTTP_Client.


The documentation for this class was generated from the following file: