el_mariachi Posted March 17, 2008 Share Posted March 17, 2008 Hello, For my webapp I'm parsing data from a profile site. For this I use Zend_Http_Client. $client = new Zend_Http_Client('http://johnsmith.profile.site.com'); $body = $client->request()->getBody(); After this I only need some textual information from the body. The problem is that the request will load the whole site first (including images) before I can do anything with it. This makes the whole process slow. Is there a way to make text-only requests? Link to comment https://forums.phpfreaks.com/topic/96492-http-text-only-request-possible/ Share on other sites More sharing options...
trq Posted March 17, 2008 Share Posted March 17, 2008 <?php $body = file_get_contents('http://johnsmith.profile.site.com'); ?> Link to comment https://forums.phpfreaks.com/topic/96492-http-text-only-request-possible/#findComment-493864 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.