晚安,我的朋友。我的卷发有以下问题。我尝试查看我的银行突变。我必须先登录。一旦登录成功并击中某些端点。我得到了编码的HTML。我想编码但是找不到办法。这是图片
这是我使用的代码:
public function getMutasiRekening($from, $to)
{
if( !$this->isLoggedIn ) $this->login( $this->username, $this->password );
$this->curlSetPost();
curl_setopt( $this->curlHandle, CURLOPT_URL, 'https://ib.muamalatbank.com/ib-app-mobile/en/homewelcome' );
curl_setopt( $this->curlHandle, CURLOPT_REFERER, $this->_defaultTargets['loginAction'] );
$this->exec();
curl_setopt( $this->curlHandle, CURLOPT_URL, 'https://ib.muamalatbank.com/ib-app-mobile/en/HomeAccountInfo' );
curl_setopt( $this->curlHandle, CURLOPT_REFERER, 'https://ib.muamalatbank.com/ib-app-mobile/en/homewelcome' );
$this->exec();
curl_setopt( $this->curlHandle, CURLOPT_URL, 'https://ib.muamalatbank.com/ib-app-mobile/en/MI11300a');
curl_setopt( $this->curlHandle, CURLOPT_REFERER, 'https://ib.muamalatbank.com/ib-app-mobile/en/HomeAccountInfo' );
$this->exec();
$params = array(
'radiogroup=0',
'hidden=09/01/2019',
'dfrom-s1=9',
'dfrom-s2=1',
'dform-s3=2019',
'accountSelect=4550004619'
);
$params = implode( '&', $params );
curl_setopt( $this->curlHandle, CURLOPT_URL, 'https://ib.muamalatbank.com/ib-app-mobile/en/mi11300a.form1' );
curl_setopt( $this->curlHandle, CURLOPT_REFERER, 'https://ib.muamalatbank.com/ib-app-mobile/en/MI11300a' );
curl_setopt( $this->curlHandle, CURLOPT_POSTFIELDS, $params );
$html = $this->exec();
var_dump("Content of HTML");
var_dump(html_entity_decode( iconv("UTF-8", "ISO-8859-1", $html) ));
exit;
return $this->getMutasiRekeningTable($html);
}