Subversion Repositories Applications.annuaire

Compare Revisions

Ignore whitespace Rev 599 → Rev 600

/trunk/jrest/services/auth/AuthPartnerRecolnat.php
20,7 → 20,6
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded'));
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, "username=$login&password=$password");
$res = curl_exec($curl);