LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-05-2007, 01:26 PM   #1
MikeyCarter
Member
 
Registered: Feb 2003
Location: Orangeville
Distribution: Fedora
Posts: 492

Rep: Reputation: 31
Is possible to have squid modify incoming pages?


At work we have systems which have been hard coded with "application/x-java-applet;jpi-version=1.4.2_12" and other versions on different systems. In windows this is ok as you can have multiple versions of java running on the same system.

However in firefox on linux you can only have one version of java plugin at one time. It's easy enough to fool the system by adding extra jpi versions to the plugin.dat file. however it only picks up the last jpi version to do the check. So if I try to access to systems with different jpi versions it won't go.

So I was wondering if it's possible to set up squid to do a global replace on the string "application/x-java-applet;jpi-version=x.x.x" that way all the systems coming in are of the same jpi version.

I know it would be easier to just change the jpi hardcode but I don't have access to those systems nor will the sys admins change it for me.

So if I can get squid to fool the system it would be great.
 
Old 04-05-2007, 04:26 PM   #2
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Your request is rather incoherent in that you appear to be mixing up client functions and server functions freely, but what I get from it is that you want to change outgoing and incoming HTTP headers and you are asking if squid will do this.

That isn't squid's purpose, and I honestly don't know if it will do it though I suspect it can.

However, changing/blocking headers IS the job of privoxy and it'll do everything you want - and it probably will be a bit easier to set up than squid will be.
 
Old 04-05-2007, 04:33 PM   #3
MikeyCarter
Member
 
Registered: Feb 2003
Location: Orangeville
Distribution: Fedora
Posts: 492

Original Poster
Rep: Reputation: 31
Sorry didn't realize my explanation wasn't clear.


inside the start page for our application is <EMBED> and <OBJECT> tags. They have a hard coded java version as one of the Parameter tags inside the webpage.

So I was wondering if I could configure squid to intercept the html text, grep/sed it, and serve it to firefox. That way I can modify the java version parameter in the page.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to dynamically modify squid acl frankjoshua Linux - Software 0 07-11-2006 04:10 AM
IP tables / squid incoming traffic xilace Linux - Software 5 10-25-2004 01:38 PM
Squid running but doesn't seem to cach pages Crasherz Linux - Software 1 06-02-2004 04:10 AM
Squid - Serving stale pages cli_man Linux - Software 0 12-08-2003 08:45 AM
For Squid (proxy server) gurus: FTP from browser with read-write-modify permission Zingaro2002 Linux - Software 5 11-24-2003 04:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration