我想通过将用户名和密码传入代码来访问https站点,但是,由于'浏览器缓存问题',网站拒绝我访问,有人可以帮忙吗?这里是代码:zend_http_client浏览器缓存问题
$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();
您能否更详细地分享此错误 –
错误来自客户端网站,它只是无法识别凭据。 – user2045298