我正在尝试通过将用户名和密码传递到代码中来访问 https 站点,但是,由于“浏览器缓存问题”,该网站拒绝我访问,有人可以帮忙吗?这是代码:
$client = new Zend_Http_Client();
$client->setUri('https://www.example.com');
$client->setParameterPost(array(
'username' => 'username',
'password' => 'password'
));
$client->request(Zend_Http_Client::POST);
$response = $client->request();
echo $response->getBody();