Hello people,

I had a question regarding logging into a phpbb3 forum with Http_client from
zend. Firstly I want to say I'm not a pro php-er :P so don't be to hard on
me when I post something stupid. 

Now what I want is the following. I need to login at my phpbb3 forum
automatically. I'am using this piece of code...

                                $client = Zend_Registry::get('client');

                                $client -> setConfig(array('useragent' => 
'Mozilla/4.0 (compatible; MSIE
7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2)'));

                                $client -> setCookieJar();

                                $client -> setUri($url);
                                $client -> setParameterPost('username', 
$username);
                                $client -> setParameterPost('password', 
$password);

                                $client -> request('POST');

Now well I tested this code at other websites and there it works but I can't
get it working to login at a phpbb3 forum :S... I think it has something to
do with 'sid' but I'm not sure... You can check the html source of the login
form here:
http://www.phpbb.com/community/ucp.php?mode=login, right mouse click.. etc I
guess you know what I mean ;) I

I hope some can help me.
Cheers,

Wouser
-- 
View this message in context: 
http://www.nabble.com/Zend-Http_client-Login-phpbb3-forum-tp16992451p16992451.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to