2 $device=$_GET['device'];
10 foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }
11 rtrim($fields_string,'&');
16 curl_setopt($ch, CURLOPT_URL,"http://isy99/change");
18 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
19 curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
20 curl_setopt($ch, CURLOPT_USERPWD, 'admin:admin');
21 curl_setopt($ch,CURLOPT_POST,count($fields));
22 curl_setopt($ch,CURLOPT_POSTFIELDS,$fields_string);
27 $output = curl_exec($ch);