【发布时间】:2017-10-12 10:07:24
【问题描述】:
我正在尝试让刮板在两因素身份验证 (Duo) 到位的情况下工作。每次我发送 POST 以尝试身份验证时,它都会失败并显示 400(错误请求)。这是我尝试过的最新版本的代码:
use Goutte\Client;
$client = new Client();
$res = $client->request('POST', 'https://example.com/cosign.cgi', [
'body' => 'login=theuser&password=thepassword&service=theservice&passcode=8675309',
]);
返回的错误页面正文表明需要启用 cookie。然而,在 $client 中启用了 cookie。
【问题讨论】:
标签: php cookies guzzle goutte cosign-api