문제

I am using SimpleBrowser from SimpleTest (http://www.simpletest.org) to login a webmin (http://www.webmin.com/). This login uses https. I've tried two different ways, both fail.

$browser = new SimpleBrowser();
$browser->useCookies();
$browser->useFrames();
//echoes the login page, where it should echo the landing page from a logged user
echo $browser->post('https://address/','user=User&pass=Secret'));

And also :

$browser = new SimpleBrowser();
$browser->useCookies();
$browser->useFrames();
$browser->get('https://address/');
$browser->setField('user', 'User');
$browser->setField('pass', 'Secret');
//echoes the login page, where it should echo the landing page from a logged user
echo $browser->clickSubmit('Login');

Do you have any clue why it doesn't work ?

도움이 되었습니까?

해결책

Make sure if you have installed php_openssl.dll extension in your PHP.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top