我正在向站點發送基本身份驗證請求以登錄用戶。如果他們的憑據是正確的,我想顯示儀表板。因此,我需要在「+ curl:curl resource @ 212▼」下的redirectURL中進入的redirectURL。發送帖子後要獲取重定向URL Curl請求
這是我的代碼。我想重定向URL在$的redirectUrl 1
$curl = new Curl\Curl();
$curl->post('https://xyz.ryver.com/application/login', array(
'username' => '[email protected]',
'password' => 'mypass',
));
$redirectUrl= ""; //store redirecting URL here
return redirect($redirectUrl);
我想這個 「REDIRECT_URL」 的價值2
代碼在哪裏? –
請將您的代碼複製粘貼到問題中,因爲指向圖片或其他網站的鏈接可能會消失! – lewis4u
對,我已經添加了它們。謝謝 –