Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Squid proxy and NOT parsing a semicolon

    Scheduled Pinned Locked Moved pfSense Packages
    4 Posts 2 Posters 1.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      d.the.duck
      last edited by

      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:1.9.0.11) 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?

      1 Reply Last reply Reply Quote 0
      • J Offline
        jigpe
        last edited by

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

        jigp
        Davao City
        1.2.2

        1 Reply Last reply Reply Quote 0
        • D Offline
          d.the.duck
          last edited by

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

          1 Reply Last reply Reply Quote 0
          • J Offline
            jigpe
            last edited by

            Yah try it.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.