Hi all,
I have a question related to Zend_Http_Client. What I need to do is the
following:
Connect to a site which is behind HTTP authentication, then after the
HTTP authentication is succesfull, I will be redirected to a login form.
I will have to pass valid user credentials here, in order to login.
After this login has succeeded, I want to fetch a specific page (which
requires the previous authentication) into a local file.
I was able to do the HTTP authentication, but I'm a little stuck on what
to do next. Here's my code for the HTTP authentication
$client = new Zend_Http_Client('http://foo.be/servicemanager/', array(
'timeout' => 30,
'keepalive' => true
)
);
$client->setCookieJar();
$client->setAuth('xx', 'xx', Zend_Http_Client::AUTH_BASIC);
$response = $client->request('GET');
I would sincerly appreciate any help!
Best,
--
Andries Seutens
http://andries.systray.be
Gecontroleerd op virussen door de JOJO Secure Gateway.