Well... First I would like to thank all the attention you guys are giving to me. Sice my doubt maybe quite isn't a REBOL's issue, you're being so kind. Other foruns wouldn't even give me an answer. Then, I will try to answer Anton, inetw3 and Ingo in this e-mail, ok?
Anton, first I was looking for a proxy to do this. I choosed squid (http://www.squid-cache.org/) because it's free and can act as a transparent proxy, which prevents me from having to update each browser configuration to send the requests through it. I was wondering I could program something like a module for squid that could make the adjustments to the pages. But unfortunately, it can't be done. As in http://www.squidguard.org/intro/, "neither squidGuard nor Squid can be used to filter/censor/edit text inside documents or embeded scripting languages". Although I could try to build a proxy that does that, as you suggest, it will be extremely error prone. I'd like to reuse things. As I was trying with squid. Anyway, my intentions for this program is wide enough to congestion the proxy server. There I thought it should be done on the client-side. inetw3, as you said, "No matter how you intercept the html data, something must be written in the html to start this process; cgi, asp, php, perl, javascript, etc.". But that's the problem: I don't want to change the original HTML pages on the web servers, like inserting "<object>" tags. I hope there's a way. Ingo, my last hope of doing this on the client-side was building an extension for Firefox. I know there will be a lost in compatibility (since MANY still use IE), but I'm almost accepting that as it's free. And your suggestion about greasemonkey was great! I don't know why yet, but the "options" for the extension isn't working. Everything there is disabled. Anyway, I will take a good look at it's code. Thank you all guys! If any other suggestion comes, it's VERY WELCOME. Best wishes, Rodrigo Anton Rolls wrote: >Ok, > >Now it sounds (as inetw3 suggested) like you want a proxy. >If that's true then you don't need rebol plugin. >Rebol plugin is just going to make things more complicated >I think, since it's not very stable. It's more easy to >find a stable Rebol/Core and program it to act as a proxy. >The program will listen on a port (say 8080) for requests >from the client, pass the requests out on port 80, >get the results, process the results in some way, then >hand the result back to the client. > >I did this a few years ago when I was mad at webpages >returning stark white backgrounds all the time. > >So check out: >http://www.lexicon.net/antonr/rebol/web/no-white-web-proxy.r >based on webserver.r from the script library. >Also check out the latest incarnation of webserver.r at rebol.org. >That probably has some interesting differences from >the more than three years old version of webserver.r. > >Regards, > >Anton. > > > >>Hi Anton and all you guys, >> >>I took a look at this proposal and I think it won't work. AJAX is >>basically DHTML + XMLHttpRequest and I got the feeling that it demands >>commitment to this approach from the beggining of the design. I mean, >>the original web pages need to be constructed in this way. As Google >>Suggest and Google Maps. That's not my case. Let me try to state >>it clearly: >> >>*"I want something on the client-side (between browser and web server) >>that can intercept the HTTP response (web page retrieved by the server) >>and make some adjustments to the page (for example, inserting footnotes, >>summarizing content, etc.) and, only then, delivers the changed page to >>the browser for presentation. Just remembering: it gotta be client-side >>programming, which means I CAN'T change the original web pages of ANY >>web server."* >> >>Can Rebol do that? Another plug-in? Or a browser extension? Any Java >>solution in client-programming? >>Hope you guys help me on that. Thanks for your attention! >> >>Rodrigo >> >> > > > -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
