<p><font face="verdana,sans-serif">per 5.1 Authentication in control-spec.txt: "To authenticate, the controller must send the contents of this file, encoded in hexadecimal."<br> <br>Fine, but when using the following in PHP:<br>
<br>$ch = fopen('cookiefilename', 'r');<br>$auth_value = fread($ch, 128);<br>$send_auth_value = "AUTHENTICATE \"". bin2hex($auth_value) . "\"\r\n";<br>$fh = fsockopen('<a href="http://127.0.0.1/" target="_blank">127.0.0.1</a>', controlportnumber);<br>
fwrite($fh, $send_auth_value);<br>$buf = fgets($fh);<br> <br>... I get 515 Authentication failed: Wrong length on authentication cookie. <br> <br>Anyone help me with this? Thanks.</font></p>
<p><font face="verdana,sans-serif">Wesley </font></p>