News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

ProDevTips.com:
Parsing with Zend HTTP Client
March 10, 2009 @ 10:25:02

On ProDevTips.com there's a quick new tutorial posted about using the Zend_Http component of the Zend Framework to fetch a remote page that requires cookie authentication - a "cookie jar".

As it happens I'm very satisfied with the performance of Zend Http when it comes to the fetching and cookie parts. [...] Note [in my example] the use of $client->setCookieJar();, that is all that is needed to manage the logged in state, awesome. Without it the second post to adv_stats.php would've failed due to unauthorized access.

This fetching method pulls in the remote file, parses out the table (as defined by a pattern match) and grabs the rows/columns using getRows and getColumns and manipulates the content inside.

0 comments voice your opinion now!
zendhttp client zendframework cookiejar cookie state manage


blog comments powered by Disqus

Similar Posts

Flexandair.com: Setting Up Zend_Amf

Zend Developer Zone: Manipulating Configuration Data with Zend_Config

Padraic Brady's Blog: Contributing To Zend Framework 2.0 Is Free! Hurry Before This Offer Ends!

Lukas Smith's Blog: What we all hate in todays CMS software

7PHP.com: Interview with Matthew Weier O'Phinney - Project Lead of Zend Framework


Community Events

Don't see your event here?
Let us know!


opinion php7 api framework example library performance series extension symfony2 xdebug interview community version podcast release voicesoftheelephpant laravel conference introduction

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework