<div dir="ltr"><div><div><div><div>Hi<br><br>I'm geting this error in cache.log<br><br>ERROR: URL-rewrite produces invalid request: GET ERR HTTP1.0<br><br></div>This error gives me with squidGuard (1.4).<br><br></div>I have tested a simple redirector in php to check the new helper interface (The actual version of squid is 3.3.13), and It gives me the same message<br><br>Squid Cache: Version 3.3.13<br>configure
 options:  '--enable-icmp' '--enable-delay-pools' '--enable-icap-client'
 '--disable-wccp' '--disable-wccpv2' '--enable-ssl' 
'--enable-forw-via-db' '--disable-epoll' '--disable-http-violations' 
'--enable-linux-netfilter' '--enable-follow-x-forwarded-for' '--enable-ssl-crtd' '--enable-url-rewrite-helpers'<br><br></div>the redirector code is this (code taken from squid site):<br><br>$temp = array();<br>stream_set_timeout(STDIN, 86400);<br><br>while ( $input = fgets(STDIN) ) {<br>  $temp = split(' ', $input);<br></div><div>  $url = $temp[0]; <br></div><div>  if ( $url == "<a href="http://www.google.com" target="_blank">http://www.google.com</a>" )<br>  {<br>     echo "OK rewrite-url=<a href="http://192.168.1.10/block.php" target="_blank">http://192.168.1.10/block.php</a> \n";<br>  } else {<br>     echo "ERR \n";<br>  }<br>}<br><br></div>Thanks</div>