Domanda

Sto usando SimpleBrowser da SimpleTest (http://www.simpletest.org) per accedere a un webmin (http://www.webmin.com/). Questo accesso utilizza HTTPS. Ho provato due modi diversi, entrambi falliscono.

$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'));

E anche :

$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');

Hai idea del perché non funziona?

È stato utile?

Soluzione

Assicurati di aver installato l'estensione PHP_OPENSSL.DLL nel tuo PHP.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top