【发布时间】:2017-04-11 06:41:13
【问题描述】:
我正在向站点发送基本身份验证请求以登录用户。如果他们的凭据是正确的,我想显示仪表板。因此我需要“+curl: curl resource @212 ▼”下的“redirect_url”中的redirectURL
这是我的代码。我想在 $redirectUrl 1 中获取重定向 URL
$curl = new Curl\Curl();
$curl->post('https://xyz.ryver.com/application/login', array(
'username' => 'xyza@xyz.com',
'password' => 'mypass',
));
$redirectUrl= ""; //store redirecting URL here
return redirect($redirectUrl);
我想得到这个“redirect_url”的值2
【问题讨论】:
-
代码在哪里?
-
请将您的代码复制粘贴到问题中,因为图片或其他网站的链接可能会消失!
-
对,我已经添加了它们。谢谢