Squid proxy and NOT parsing a semicolon

  • I'm looking to replace the HTTP headers of my outgoing HTTP requests.  What I need to add to the config is:

    header_access User-Agent deny all
    header_replace User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)

    This would be to get my PS3 to access sites that deny browsers other than Firefox and IE.

    Trouble is, all those semicolons are getting parsed into the conf file as newlines, and if I mod the actual conf via shell, squid won't run.  I've tried Unix escapes () with no luck.  Any thoughts?

  • Did you try to put ".*.(.file)" ?

    Davao City

  • I'm not sure what you mean.  Like specify a file rather than a string for the html header replacement?

  • Yah try it.

Log in to reply