03.02.2014 Views

php|architect's Guide to Web Scraping with PHP - Wind Business ...

php|architect's Guide to Web Scraping with PHP - Wind Business ...

php|architect's Guide to Web Scraping with PHP - Wind Business ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 7<br />

Zend_Http_Client<br />

Zend Framework (often abbreviated ZF) was conceived in early 2005. Contrary <strong>to</strong><br />

PEAR1, ZF tends <strong>to</strong> remain relatively current in the version of <strong>PHP</strong> it requires and<br />

often takes advantage of features available in newer versions. As of ZF 1.10.1, <strong>PHP</strong><br />

5.2.4 is required.<br />

Designed <strong>to</strong> take full advantage of the new object system introduced in <strong>PHP</strong> 5, ZF<br />

has a fully object-oriented API. The project team strives <strong>to</strong> maintain an E_STRICT<br />

level of compliance and good code co verage via unit testing.<br />

Among the components included in ZF is Zend_Http_Client, an HTTP client library<br />

<strong>with</strong> a fairly comparable feature set <strong>to</strong> the others already co vered in previous chapters.<br />

With that, let’s mo ve in<strong>to</strong> ho w it works.<br />

Basic Requests<br />

Let’s start <strong>with</strong> a basic request.<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!