|
|
@@ -15,7 +15,7 @@
|
|
|
<title>Using Zend_Http_Client</title>
|
|
|
<para>
|
|
|
The class constructor optionally accepts a URL as its first parameter
|
|
|
- (can be either a string or a Zend_Uri_Http object), and an array or
|
|
|
+ (can be either a string or a Zend_Uri_Http object), and an array or
|
|
|
Zend_Config object containing configuration options. Both can be left out,
|
|
|
and set later using the setUri() and setConfig() methods.
|
|
|
<example id="zend.http.client.introduction.example-1">
|
|
|
@@ -31,7 +31,7 @@ $client->setUri('http://example.org');
|
|
|
$client->setConfig(array(
|
|
|
'maxredirects' => 0,
|
|
|
'timeout' => 30));
|
|
|
-
|
|
|
+
|
|
|
// You can also use a Zend_Config object to set the client's configuration
|
|
|
$config = new Zend_Config_Ini('httpclient.ini, 'secure');
|
|
|
$client->setConfig($config);
|
|
|
@@ -53,7 +53,7 @@ $client->setConfig($config);
|
|
|
<title>Configuration Parameters</title>
|
|
|
<para>
|
|
|
The constructor and setConfig() method accept an associative array
|
|
|
- of configuration parameters, or a Zend_Config object. Setting these
|
|
|
+ of configuration parameters, or a Zend_Config object. Setting these
|
|
|
parameters is optional, as they all have default values.
|
|
|
<table id="zend.http.client.configuration.table">
|
|
|
<title>Zend_Http_Client configuration parameters</title>
|