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 ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
72 ” Zend_Http_Client<br />
// Another way <strong>to</strong> set the request method<br />
$client->setMethod(Zend_Http_Client::GET);<br />
?><br />
• The URL for the request can either be passed as the first parameter <strong>to</strong> the<br />
Zend_Http_Client construc<strong>to</strong>r or via the setUri method after the client instance<br />
is created. Both methods accept the URI as either a string or an instance<br />
of Zend_Uri_Http.<br />
• The request method of the client is used <strong>to</strong> dispatch the request, taking an<br />
optional parameter of a string containing the HTTP request method <strong>to</strong> use.<br />
GET is used by default. The HTTP request method can also be set via the client<br />
setMethod method using the client class constant named for that HTTP request<br />
method.<br />
R esponses<br />
The response returned by the client’s request method has a number of useful accessor<br />
methods.<br />