title: Using Squid to append text to HTTP responses on demand
body: <p>I am trying to setup a http proxy, but sadly I don't really know what I'm doing.</p>
  
  <p>The primary function of this proxy will be to append a javascript file to the bottom of any web request if a certain parameter is present in the Query String.</p>
  
  <p>For example, if I had Firefox setup to go through the proxy, if i went to <a href="http://www.anypage.com/?enable_script=true" rel="nofollow">http://www.anypage.com/?enable_script=true</a> the following line would be present at the bottom of the source:</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://localhost/script.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I have played aroudn with Squid a little, it appears to be able to do what I need but documentation is limited and I'm not sure where to start.</p>
  
  <p>Thanks!</p>