/trunk/jrest/services/auth/AuthPartnerRecolnat.php |
---|
20,6 → 20,7 |
$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); |