<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How To: Write Custom Redirector or Rewritor Plugin For Squid in Python</title>
	<atom:link href="http://gofedora.com/how-to-write-custom-redirector-rewritor-plugin-squid-python/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>How Tos, Tutorials, Tips and Tricks</description>
	<lastBuildDate>Wed, 01 Jun 2011 05:17:07 +0530</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Martin Taleski</title>
		<link>http://gofedora.com/how-to-write-custom-redirector-rewritor-plugin-squid-python/comment-page-1/#comment-45724</link>
		<dc:creator>Martin Taleski</dc:creator>
		<pubDate>Thu, 10 Feb 2011 09:32:33 +0000</pubDate>
		<guid isPermaLink="false">http://172.17.8.64/gofedora/?p=211#comment-45724</guid>
		<description>Hi

Do you know if it is possible to add custom http header in the new_url that we are writing in stdout.</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Do you know if it is possible to add custom http header in the new_url that we are writing in stdout.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Odd squid transparent redirect behavior</title>
		<link>http://gofedora.com/how-to-write-custom-redirector-rewritor-plugin-squid-python/comment-page-1/#comment-38574</link>
		<dc:creator>Odd squid transparent redirect behavior</dc:creator>
		<pubDate>Sat, 20 Nov 2010 08:49:44 +0000</pubDate>
		<guid isPermaLink="false">http://172.17.8.64/gofedora/?p=211#comment-38574</guid>
		<description>[...] The jefferson_redirect.py script is based on this script: http://gofedora.com/how-to-write-custom-redirector-rewritor-plugin-squid-python/ [...]</description>
		<content:encoded><![CDATA[<p>[...] The jefferson_redirect.py script is based on this script: <a href="http://gofedora.com/how-to-write-custom-redirector-rewritor-plugin-squid-python/">http://gofedora.com/how-to-write-custom-redirector-rewritor-plugin-squid-python/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Odd squid transparent redirect behavior Drija</title>
		<link>http://gofedora.com/how-to-write-custom-redirector-rewritor-plugin-squid-python/comment-page-1/#comment-38518</link>
		<dc:creator>Odd squid transparent redirect behavior Drija</dc:creator>
		<pubDate>Fri, 19 Nov 2010 12:41:36 +0000</pubDate>
		<guid isPermaLink="false">http://172.17.8.64/gofedora/?p=211#comment-38518</guid>
		<description>[...] The jefferson_redirect.py script is based on this script: http://gofedora.com/how-to-write-custom-redirector-rewritor-plugin-squid-python/ [...]</description>
		<content:encoded><![CDATA[<p>[...] The jefferson_redirect.py script is based on this script: <a href="http://gofedora.com/how-to-write-custom-redirector-rewritor-plugin-squid-python/">http://gofedora.com/how-to-write-custom-redirector-rewritor-plugin-squid-python/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hafiz</title>
		<link>http://gofedora.com/how-to-write-custom-redirector-rewritor-plugin-squid-python/comment-page-1/#comment-30240</link>
		<dc:creator>hafiz</dc:creator>
		<pubDate>Fri, 11 Jun 2010 08:45:40 +0000</pubDate>
		<guid isPermaLink="false">http://172.17.8.64/gofedora/?p=211#comment-30240</guid>
		<description>Hi Kulbir,
How about perl script for redirect. can you check my perl script as below:
#!/usr/bin/perl
$&#124;=1;
while()
{
        open (MYFILE, &#039;status.txt&#039;);
        $input = ;
        close (MYFILE);
        if ($input == 1)
        {       $&#124;=1;
                 @X = split;
                 $url = $X[0];
                 if ($url !~ /^http://www.wow.my/)
                 {
                 $_ = $url;
                 s/^http://(.*)/(.*)/http://www.wow.my/2/;
                 print &quot;301:$_n&quot;;
                 }

        }
        else
        {
        print &quot;$urln&quot;
        }
}
this script didn&#039;t work if the input=1. how to make this script works and how to unbuffer the input? hope you can help me..

thanks,</description>
		<content:encoded><![CDATA[<p>Hi Kulbir,<br />
How about perl script for redirect. can you check my perl script as below:<br />
#!/usr/bin/perl<br />
$|=1;<br />
while()<br />
{<br />
        open (MYFILE, &#8217;status.txt&#8217;);<br />
        $input = ;<br />
        close (MYFILE);<br />
        if ($input == 1)<br />
        {       $|=1;<br />
                 @X = split;<br />
                 $url = $X[0];<br />
                 if ($url !~ /^http://www.wow.my/)<br />
                 {<br />
                 $_ = $url;<br />
                 s/^http://(.*)/(.*)/http://www.wow.my/2/;<br />
                 print &#8220;301:$_n&#8221;;<br />
                 }</p>
<p>        }<br />
        else<br />
        {<br />
        print &#8220;$urln&#8221;<br />
        }<br />
}<br />
this script didn&#8217;t work if the input=1. how to make this script works and how to unbuffer the input? hope you can help me..</p>
<p>thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kulbir Saini</title>
		<link>http://gofedora.com/how-to-write-custom-redirector-rewritor-plugin-squid-python/comment-page-1/#comment-12353</link>
		<dc:creator>Kulbir Saini</dc:creator>
		<pubDate>Thu, 19 Nov 2009 03:30:51 +0000</pubDate>
		<guid isPermaLink="false">http://172.17.8.64/gofedora/?p=211#comment-12353</guid>
		<description>Vivek,

I am glad you liked it :)</description>
		<content:encoded><![CDATA[<p>Vivek,</p>
<p>I am glad you liked it <img src='http://gofedora.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vivek Yadav</title>
		<link>http://gofedora.com/how-to-write-custom-redirector-rewritor-plugin-squid-python/comment-page-1/#comment-11642</link>
		<dc:creator>Vivek Yadav</dc:creator>
		<pubDate>Thu, 12 Nov 2009 10:13:02 +0000</pubDate>
		<guid isPermaLink="false">http://172.17.8.64/gofedora/?p=211#comment-11642</guid>
		<description>Dude... this short-tutorial helped me a lot.... !! 
I love Python too.

Thnx.... ^_^</description>
		<content:encoded><![CDATA[<p>Dude&#8230; this short-tutorial helped me a lot&#8230;. !!<br />
I love Python too.</p>
<p>Thnx&#8230;. ^_^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: santhosh</title>
		<link>http://gofedora.com/how-to-write-custom-redirector-rewritor-plugin-squid-python/comment-page-1/#comment-291</link>
		<dc:creator>santhosh</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://172.17.8.64/gofedora/?p=211#comment-291</guid>
		<description>Hi All,

I would like to add some content to all the incoming HTML contetnt.
In squid in squid how i can do that?  when i browse any webpage, i should see the content which i added in the squid. PLease help me in this regard.</description>
		<content:encoded><![CDATA[<p>Hi All,</p>
<p>I would like to add some content to all the incoming HTML contetnt.<br />
In squid in squid how i can do that?  when i browse any webpage, i should see the content which i added in the squid. PLease help me in this regard.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

