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 Alex Rousskov
On 02/06/2017 03:27 PM, boruc wrote: > 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.

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 Amos Jeffries
On 1/02/2017 7:34 a.m., boruc wrote: > 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 >

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

2017-01-31 Thread Yuri Voinov
Exactly, localhost system administrators can do what they want ;-) 01.02.2017 1:05, 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

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 Yuri Voinov
01.02.2017 0:34, 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.

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 Antony Stone
On Tuesday 31 January 2017 at 18:19:14, boruc wrote: > 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. Ah,

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 Antony Stone
On Tuesday 31 January 2017 at 17:28:15, boruc wrote: > 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 Okay, so that's an official source tarball, good. > 3. About "sudo auto-apt run ./configure && sudo make && sudo

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 Antony Stone
On Tuesday 31 January 2017 at 10:35:30, boruc wrote: > I ran command "sudo apt-get remove --purge squid3" Okay, that will remove the distribution (Debian or Debian-based) package. > then I downloaded squid-3.5.24 in browser What exactly did you download from where? > unpacked it So,

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 Amos Jeffries
On 30/01/2017 7:52 a.m., boruc wrote: > 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 Please upgrade. 3.1 is over 5

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] Is it possible to modify cached object?

2017-01-22 Thread Amos Jeffries
On 23/01/2017 4:34 a.m., boruc wrote: > 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? Yes you would. Squid just passes the data it gets. > If you could write a "lifecycle" of

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 Amos Jeffries
On 9/01/2017 8:41 a.m., Rafael Akchurin wrote: > Hello Boruc, > > Please use https://en.wikipedia.org/wiki/Data_URI_scheme > boruc: Also you should not be manually (or even with a Script) editing cache objects on disk as a routine operation. As Alex already mentioned use ICAP or eCAP

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

2017-01-08 Thread Amos Jeffries
On 9/01/2017 3:49 a.m., boruc wrote: > 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

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

2017-01-08 Thread Rafael Akchurin
@lists.squid-cache.org Subject: Re: [squid-users] Is it possible to modify cached object? 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

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 Yuri Voinov
08.01.2017 20:49, 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

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

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

2017-01-06 Thread reinerotto
Content adaption can also be done without squid. Mod of message body "on-the-fly" can be achieved using commercial product(s). -- View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Is-it-possible-to-modify-cached-object-tp4681073p4681075.html Sent from the Squid -

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

2017-01-06 Thread Alex Rousskov
On 01/06/2017 11:35 AM, boruc wrote: > 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

[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.