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