Connectivity

The timeout configuration setting is an integer value specifying the number of seconds for which the client should attempt to connect to the server before timing out. fn the event of a timeout, an instance of the exception Zend_Http_Client_Adapter_Exception will be thrown.

By default, the client assumes that only one request will be performed on the connection it establishes. That is, it will automatically include a Connection header with a value of close. When sending multiple requests to the same host, the keepalive configuration can be set to t rue to have all requests sent on the same connection for improved performance.


© Zend_Http_Client — Web Scraping

>>> Back to TABLE OF CONTENTS <<<
Category: Article | Added by: Marsipan (01.09.2014)
Views: 302 | Rating: 0.0/0
Total comments: 0
avatar