<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hi!<br>
I am trying to do a helper for use with Squid. I did my helper but it doesnt authentify
<br>
</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div><?php<br>
<br>
$f = fopen("php://stdin", "r");<br>
while (!(feof($f)))</div>
<div>{<br>
    $line = fgets($f);<br>
    if ($line) <br>
</div>
<div>     {<br>
        $fields = explode(' ', trim($line));<br>
        $username = rawurldecode($fields[0]);<br>
        $password = rawurldecode($fields[1]);<br>
<br>
        if ($username=="edwin" &&  $password=="1234")<br>
         fwrite(STDOUT, "OK\n");<br>
        else<br>
         fwrite(STDOUT, "ERR\n");<br>
    }<br>
}<br>
?></div>
<div><br>
</div>
<div>when I put the values it continues asked me user/password<br>
</div>
<br>
<p></p>
<p style="margin-top:0;margin-bottom:0"><font size="2"><span style="font-size:10pt;"></span></font><br>
</p>
</div>
</body>
</html>