Re: Content parsing

From: Mario L. Peralta <[email protected]>
Date: Wed, 03 May 2000 20:02:22 -0300

Ahsan Khan wrote:
>
> You can Better do it By CNAM in DNS .:-))
>
> With Regards
> Ahsan Khan
> Sr. System Admin
> Internet Division (OneNet)
> Sun Communication Pvt. Ltd.
> Pakistan
> http://www.one.net.pk
>
> ----- Original Message -----
> From: "Mario L. Peralta" <mario@mecon.gov.ar>
> To: <squid-users@ircache.net>
> Sent: Thursday, May 04, 2000 12:49 AM
> Subject: Content parsing
>
> > I wanna write a module for squid that change links in html pages
> > (something like
> > parsing all html pages and replacing the link <A
> > HREF=http://www.microsoft.com> by
> > <A HREF=http://www.redhat.com>) ;-)
> > I've been reading the Squid Programmers Guide (chapter 4: Flow of a
> > typical request)
> > but i get lost trying to follow the explanation in the code...
> > Any tips?
> > TIA

Perhaps I wasn't clear... I know my english is poor, so i'll try to
explain a little
more.
I intend to use squid as a reverse proxy to access some web servers.
These web servers have pages with links to other sites, and i itend to
override
those links, all by means of squid.conf, for example:

# Link rewriting rules
rewrite www.somesite.com host.othersite.com
rewrite www.anothersite.com host.someothersite.com
...

and so on, the link rewriting should search for the pattern of the 1st
column and
replace it for the pattern on the second column, in all HTML pages.

Please let me know if i'm not clear.
Thanks

-- 
Weiler's Law:
        Nothing is impossible for the man who doesn't have to do it
Received on Wed May 03 2000 - 17:08:58 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:53:15 MST