I want to get html of a URL. Basically I am doing this :
$client = new Zend_Http_Client($url);
$client->setConfig(array('strictredirects' => true, 'timeout'=> 100, 'storeresponse' => true));
$response = $client->request();
$html = $response->getBody();
For some urls that redirect, i am getting the following error
Invalid URI supplied
For example if you consider the following URL:
It redirects to another URL. When i try to get the lastResponse, it gives me nothing. HOw do i get the html for this URL?? I tried the config option strictredirects but still its giving the same error. HOw do i solve this??