Re: [squid-users] Is it possible to modify cached object?

2017-02-07 Thread boruc
I managed to patch this adapter (I don't know many things in Linux, but I don't give up), properly configured Squid (with regex and quotes) and successfully replaced closing *body* tag with image tag and of course closing body tag. -- View this message in context:

Re: [squid-users] Is it possible to modify cached object?

2017-02-06 Thread boruc
Hi again, So I've installed squid 3.5.12, libecap 1.0.1 and sample adapter 1.0.0. I was able to test a simple "the -> a" replacement shown in documentation . Next I tried some HTML injection, also from documentation. However, it didn't work and I got error

Re: [squid-users] Is it possible to modify cached object?

2017-01-31 Thread boruc
Well, basically I'm working on virtual machine with nothing special installed on it so I don't have to worry about all of this. I wanted to give squid a try, look how it works, learn something new. Being here, reading all your answers and suggestions is a great experience for me :) -- View this

Re: [squid-users] Is it possible to modify cached object?

2017-01-31 Thread boruc
Thank you for your answers Antony. On packages.ubuntu.com I searched for "squid3" and here's what I've found: 12.04LTS - 3.1.19 14.04LTS - 3.3.8 16.04LTS - 3.5.12 For now the best option would be to upgrade Ubuntu to 16.04, but I cannot do it now. Also Amos has written earlier: "All the newer

Re: [squid-users] Is it possible to modify cached object?

2017-01-31 Thread boruc
Antony Stone wrote > What do you get from the following: > > /etc/init.d/squid status > /etc/init.d/squid restart literally nothing. I just noticed that there isn't anything with "squid" in name in /etc/init.d. Here are some locations and files with "squid" in name:

Re: [squid-users] Is it possible to modify cached object?

2017-01-31 Thread boruc
1. Ubuntu 12.04.5 LTS 2. Squid downloaded from http://www.squid-cache.org/Versions/v3/3.5/squid-3.5.24.tar.gz 3. About "sudo auto-apt run ./configure && sudo make && sudo checkinstall", I just wanted to give it a shot, original command was "sudo ./configure && make && sudo make install" 4. Command

Re: [squid-users] Is it possible to modify cached object?

2017-01-31 Thread boruc
I ran command "sudo apt-get remove --purge squid3", then I downloaded squid-3.5.24 in browser, unpacked it, then "sudo auto-apt run ./configure && sudo make && sudo checkinstall". deb package is created, message says that it was also installed. So i ran command to see installed packages and that's

Re: [squid-users] Is it possible to modify cached object?

2017-01-29 Thread boruc
What would be the safest way to rebuild squid and enable eCAP? I wanted to install libecap and some examples from e-cap.org/Documentation for my squid. My version is 3.1.19, wiki says that suitable version of both

Re: [squid-users] Not all html objects are being cached

2017-01-25 Thread boruc
After a little bit of analyzing requests and responses with WireShark I noticed that many sites that weren't cached had different combination of below parameters: Cache-Control: no-cache, no-store, must-revalidate, post-check, pre-check, private, public, max-age, public Pragma: no-cache There is

[squid-users] Not all html objects are being cached

2017-01-24 Thread boruc
Hi everyone, I was wondering why some of visited pages are not being cached (I mean "main" pages, like www.example.com). If I visit 50 pages only 10 will be cached. Below text is from log files: store.log: 1485272001.646 RELEASE -1 04F7FA9EAA7FE3D531A2224F4C7DDE5A 200 1485272011

Re: [squid-users] Is it possible to modify cached object?

2017-01-22 Thread boruc
So basically eCAP will allow me to modify any pages that is in response? What about pages that are gzipped? Would I have to decode, modify it as I want and encode? If you could write a "lifecycle" of object that is going to be cached, what would it look like? HTTP Request -> HTTP Response ->

Re: [squid-users] Is it possible to modify cached object?

2017-01-08 Thread boruc
Sorry for multiple posts. I used tag in incorrect way so you can't see the code. Here's correct message: I can change content of the HTML in cached object, but not in every way. I have a trouble inserting an image to that site from my PC. If I simply put: img src="/home/username/Images/image.png"

Re: [squid-users] Is it possible to modify cached object?

2017-01-08 Thread boruc
I can change content of the HTML in cached object, but not in every way. I have a trouble inserting an image to that site from my PC. If I simply put: there's only a displayed icon which is refering to given location but on the page server. I also tried like this: but also with no effect. I

Re: [squid-users] Is it possible to modify cached object?

2017-01-08 Thread boruc
Thank you for your answer. Actually I managed to do what I want by simply editing that file and changing content length if necessary. I don't know why sometimes I need to restart Squid or reopen browser to see changed version of page. Sometimes it works fine on regular browser window, sometimes I

[squid-users] Is it possible to modify cached object?

2017-01-06 Thread boruc
Hi everyone, I am facing a really big problem (for me). I've set up a home network (few PCs, some mobiles) with squid proxying all requests. Is it possible to change cached objects manually? Let's say I have an object that contains /www.example.com/ page HTML source and what I want to do is e.g.