From 06f945f27840b53e57795dadbc38e76f7e11ab1c Mon Sep 17 00:00:00 2001 From: Horus3 Date: Mon, 24 Feb 2014 16:42:14 +0100 Subject: init --- .../api/core/files/Http.Client.Adapter.Curl.html | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 zend/documentation/api/core/files/Http.Client.Adapter.Curl.html (limited to 'zend/documentation/api/core/files/Http.Client.Adapter.Curl.html') diff --git a/zend/documentation/api/core/files/Http.Client.Adapter.Curl.html b/zend/documentation/api/core/files/Http.Client.Adapter.Curl.html new file mode 100644 index 0000000..edf2492 --- /dev/null +++ b/zend/documentation/api/core/files/Http.Client.Adapter.Curl.html @@ -0,0 +1,39 @@ + +Zend Gdata API Documentation

Http/Client/Adapter/Curl.php

+ Show: + PublicProtectedPrivateinherited
+ Table of Contents +
Zend Framework

LICENSE

+ +

This source file is subject to the new BSD license that is bundled +with this package in the file LICENSE.txt. +It is also available through the world-wide-web at this URL: +http://framework.zend.com/license/new-bsd +If you did not receive a copy of the license and are unable to +obtain it through the world-wide-web, please send an email +to license@zend.com so we can send you a copy immediately.

Category
Zend +   +
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) +   +
License
New BSD License +   +
Package
Zend_Http +   +
Subpackage
Client_Adapter +   +
Version
$Id: Curl.php 24593 2012-01-05 20:35:02Z matthew $ +   +

\Zend_Http_Client_Adapter_Curl

Package: Zend\Http\Client\Adapter
An adapter class for Zend_Http_Client based on the curl extension.

Curl requires libcurl. See for full requirements the PHP manual: http://php.net/curl

Implements
\Zend_Http_Client_Adapter_Interface
\Zend_Http_Client_Adapter_Stream
Category
Zend +   +
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) +   +
License
New BSD License +   +

Properties

>VPropertyprotectedarray $_config = array()
Parameters array
Default valuearray()Details
Type
array
>VPropertyprotectedarray $_connected_to = array(null, null)
What host/port are we connected to?
Default valuearray(null, null)Details
Type
array
>VPropertyprotectedresource|null $_curl = null
The curl session handle
Default valuenullDetails
Type
resource | null
>VPropertyprotectedarray $_invalidOverwritableCurlOptions
List of cURL options that should never be overwritten
Details
Type
array
>VPropertyprotectedstring $_response = null
Response gotten from server
Default valuenullDetails
Type
string
>VPropertyprotectedresource $out_stream
Stream for storing output
Details
Type
resource

Methods

methodpublic__construct() : void

Adapter constructor

Config is set using setConfig()

Throws
ExceptionDescription
\Zend_Http_Client_Adapter_Exception
methodpublicclose() : void

Close the connection to the server

methodpublicconnect(string $host, int $port = 80, boolean $secure = false) : void

Initialize curl

Parameters
NameTypeDescription
$hoststring
$portint
$secureboolean
Throws
ExceptionDescription
\Zend_Http_Client_Adapter_Exceptionif unable to connect
methodpublicgetConfig() : array

Retrieve the array of all configuration options

Returns
TypeDescription
array
methodpublicgetHandle() : resource

Get cUrl Handle

Returns
TypeDescription
resource
methodpublicread() : string

Return read response from server

Returns
TypeDescription
string
methodpublicreadHeader(resource $curl, string $header) : int

Header reader function for CURL

Parameters
NameTypeDescription
$curlresource
$headerstring
Returns
TypeDescription
int
methodpublicsetConfig(\Zend_Config $config = array()) : \Zend_Http_Client_Adapter_Curl

Set the configuration array for the adapter

Parameters
NameTypeDescription
$config\Zend_Config

| array $config

+
Returns
TypeDescription
\Zend_Http_Client_Adapter_Curl
Throws
ExceptionDescription
\Zend_Http_Client_Adapter_Exception
methodpublicsetCurlOption(string | int $option, mixed $value) : \Zend_Http_Adapter_Curl

Direct setter for cURL adapter related options.

Parameters
NameTypeDescription
$optionstring | int
$valuemixed
Returns
TypeDescription
\Zend_Http_Adapter_Curl
methodpublicsetOutputStream(resource $stream) : \Zend_Http_Client_Adapter_Socket

Set output stream for the response

This function sets output stream where the result will be stored.

Parameters
NameTypeDescription
$streamresource
Returns
TypeDescription
\Zend_Http_Client_Adapter_Socket
methodpublicwrite(string $method, \Zend_Uri_Http $uri,  $httpVersion = 1.1, array $headers = array(), string $body = '') : string

Send request to the remote server

Parameters
NameTypeDescription
$methodstring
$uri\Zend_Uri_Http
$httpVersion
$headersarray
$bodystring
Returns
TypeDescription
string$request
Throws
ExceptionDescription
\Zend_Http_Client_Adapter_ExceptionIf connection fails, connected to wrong host, no PUT file defined, unsupported method, or unsupported cURL option
+ Documentation was generated by + phpDocumentor + 2.0.0a12. + -- cgit v1.2.3