helper program

From: cll_kfoury <mailsysadmin_at_e-lcom.sy>
Date: Tue, 7 Jan 2014 09:24:05 -0800 (PST)

Hi all,

I'm working with squid 2.7 with perl helper and every things work fine
but try to work with squid 3.4.3 (beta version) and enable the helper that
already worked with 2.7, but it doesn't work, try another one ( simplest
perl helper) but the same error result.

squid.conf
acl store_rewrite_list1 urlpath_regex \/videoplayback.*id
store_id_access allow store_rewrite_list1
store_id_access deny all
store_id_program /etc/squid/new.pl

helper program:
#!/usr/bin/perl
$|=1;
while (<>) {
    @X = split;
    $x = $X[0] . " ";
if ($X[1] =~ /(youtube|google).*videoplayback\?/){
        @itag = m/[&?](itag=[0-9]*)/;
        @id = m/[&?](id=[^\&]*)/;
        @range = m/[&?](range=[^\&\s]*)/;
        print $x .
"http://video-srv.youtube.com.SQUIDINTERNAL/@id&@itag@range\n";
    } else {
        print "SUCK" . "\n";
    }
}

cache.log error
ERROR: storeID helper returned invalid result code. Wrong helper?
{result=Unknown, other: "SUCK"}

any idea why all of the perl helpers didn't work :(

--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/helper-program-tp4664184.html
Sent from the Squid - Development mailing list archive at Nabble.com.
Received on Tue Jan 07 2014 - 17:40:24 MST

This archive was generated by hypermail 2.2.0 : Tue Jan 07 2014 - 12:00:10 MST