Re: [squid-users] redirector with POST support !

From: <Mauro.Del.Giudice@dont-contact.us>
Date: Wed, 30 Jan 2002 15:35:39 +0100

From: Mauro Del Giudice@ESA on 01/30/2002 03:35 PM

Hello,
I had the same problem, discovering that jesred redirector doesn't support the
POST method very well.
I wrote a my own redirector, very simple, in perl: probably it doesn't have
great performance, but works for me:

I used perl syntax for pattern-matching substituition:

s/<pattern string to search>/<pattern string to replace>/<substitution options>

#!/usr/bin/perl
$|=1;
while (<>)
{
     s@http://my\.host\.com/my/path@http://your.host.com/your/path@;
     print;
}

It works in thie way: for any line in input, which comes from squid, every
occurrence of http://my.host.com/my/path will be replaced by
http://your.host.com/your/path, then the changed line is printed in the standard
output, taken by squid.

As you can see, it is very simple, probably it could be implemented with a
better logic, but at the moment I haven't time to do it.

Probably in the future I will try to modify also the JESRED redirector to
support also the POST method.

Ciao

|--------+----------------------->
| | "hvttuong" |
| | <hvttuong@hcm|
| | pt.vnn.vn> |
| | |
| | 2002/01/24 |
| | 15:51 |
| | |
|--------+----------------------->
>------------------------------------------------------------------------|
  | |
  | To: squid-users@squid-cache.org |
  | cc: elkner@ivs.cs.uni-magdeburg.de, (bcc: Mauro Del |
  | Giudice/esrin/ESA) |
  | Subject: [squid-users] redirector with POST support ! |
>------------------------------------------------------------------------|

Hi all,
I am currently use Jesred redirector and Squid operation as both a proxy and an
accelerator mode. Every thing is ok but POST method. Why jesred redirector
don't support POST method. And Anyone know how to use redirector which is
support POST method. Please help me ! Thank a lot !

Best Regards,
TuongHuynh
hvttuong
e-mail: hvttuong@hcmpt.vnn.vn

--
Visit: http://www.netcenter.vn/
Received on Wed Jan 30 2002 - 07:41:54 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:06:00 MST