Hi guys:
I have problem when call authentication service (AuthService.svc) from other Server with PHP.The call return a new login form (with user and pass) instead of the creation of cookie auth.
Please your help... Thanks a lot
Manuel
The code is:
$url = "http://***:82/0/ServiceModel/AuthService.svc/Login";
$post = "UserName=***r&UserPassword=***";
print_r($url);
print_r($post );
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url );
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post );
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);
curl_close($ch);
echo $result;
?>