<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>jamesoff.net &#187; squid</title>
	<atom:link href="http://jamesoff.net/site/tag/squid/feed/" rel="self" type="application/rss+xml" />
	<link>http://jamesoff.net/site</link>
	<description>you heard</description>
	<lastBuildDate>Thu, 01 Sep 2011 17:39:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Risk Disk and Squid</title>
		<link>http://jamesoff.net/site/2008/09/10/risk-disk-and-squid/</link>
		<comments>http://jamesoff.net/site/2008/09/10/risk-disk-and-squid/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 15:06:18 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[riskdisk]]></category>
		<category><![CDATA[squid]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/?p=357</guid>
		<description><![CDATA[We use RiskDisk at work to see if a company we&#8217;re going to do business with is trustworthy, but recently it was complaining HTTP Error 417: Expectation Failed when it tried to do any online lookups. I tracked this down to it sending Expect: 100-continue in the headers of the request it sent to its [...]]]></description>
			<content:encoded><![CDATA[<p>We use <a href="http://www.riskdisk.com/">RiskDisk</a> at work to see if a company we&#8217;re going to do business with is trustworthy, but recently it was complaining <code>HTTP Error 417: Expectation Failed</code> when it tried to do any online lookups.</p>

<p>I tracked this down to it sending <code>Expect: 100-continue</code> in the headers of the request it sent to its server. However, it was going via our web proxy at work, which is <a href="http://www.squid-cache.org/">Squid</a>. Recently I upgraded Squid to 2.7, and this seems to be the cause of the problems. Squid 2.7 is less forgiving about that particular header (which is apparently an RFC violation on the part of the client).</p>

<p>It&#8217;s easily fixed by adding <code>ignore_expect_100 on</code> to your Squid configuration.</p>
]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2008/09/10/risk-disk-and-squid/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>grepping the output of ccze</title>
		<link>http://jamesoff.net/site/2008/07/09/grepping-the-output-of-ccze/</link>
		<comments>http://jamesoff.net/site/2008/07/09/grepping-the-output-of-ccze/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 13:46:34 +0000</pubDate>
		<dc:creator>jamesoff</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[squid]]></category>

		<guid isPermaLink="false">http://jamesoff.net/site/?p=356</guid>
		<description><![CDATA[If you ever want to grep the output of ccze and found it didn&#8217;t work right, here&#8217;s the magic incantation to do it: tail somefile &#124; ccze -A -o noscroll &#124; grep ... -A makes ccze output ASCII sequences, and -o noscroll turns off the scroll option &#8211; whatever that is exactly. The man page [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever want to grep the output of ccze and found it didn&#8217;t work right, here&#8217;s the magic incantation to do it:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tail</span> somefile <span style="color: #000000; font-weight: bold;">|</span> ccze <span style="color: #660033;">-A</span> <span style="color: #660033;">-o</span> noscroll <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> ...</pre></div></div>


<p><code>-A</code> makes ccze output ASCII sequences, and <code>-o noscroll</code> turns off the scroll option &#8211; whatever that is exactly. The man page says it&#8217;s a good idea to turn it off if you&#8217;re redirecting the output. Omitting it seems to make the output appear in lumps :)</p>

<p>For example, keep an eye on squid logs omitting all MSN crap:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tail</span> <span style="color: #660033;">-F</span> access.log <span style="color: #000000; font-weight: bold;">|</span> ccze <span style="color: #660033;">-A</span> <span style="color: #660033;">-C</span> <span style="color: #660033;">-o</span> noscroll <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-v</span> gateway.dll</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://jamesoff.net/site/2008/07/09/grepping-the-output-of-ccze/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

