I am sending a basic auth request to a site to log in a user. If they credentials are correct I want to show the dashboard. Therefore I need the redirectURL coming in "redirect_url" under "+curl: curl resource @212 ▼"
This is my code. And I want to get the redirect url in $redirectUrl 1
$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);
I want to get this "redirect_url"'s value 2
via Talal_Mirza