<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Proxy Pac in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/proxy-pac/m-p/4200879#M32625</link>
    <description>Hi all i've a problem with proxy.pac squid.&lt;BR /&gt;&lt;BR /&gt;My file is very easy but it does not work:&lt;BR /&gt;&lt;BR /&gt;function FindProxyForURL(url, host)&lt;BR /&gt;{&lt;BR /&gt;if (isInNet(myIpAddress(),"172.22.24.0","255.255.255.0"))&lt;BR /&gt;return "PROXY 172.22.24.10:8080";&lt;BR /&gt;else&lt;BR /&gt;return   "DIRECT";&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Can anyone help me&lt;BR /&gt;Thanks</description>
    <pubDate>Mon, 19 May 2008 19:04:37 GMT</pubDate>
    <dc:creator>Marco_113</dc:creator>
    <dc:date>2008-05-19T19:04:37Z</dc:date>
    <item>
      <title>Proxy Pac</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proxy-pac/m-p/4200879#M32625</link>
      <description>Hi all i've a problem with proxy.pac squid.&lt;BR /&gt;&lt;BR /&gt;My file is very easy but it does not work:&lt;BR /&gt;&lt;BR /&gt;function FindProxyForURL(url, host)&lt;BR /&gt;{&lt;BR /&gt;if (isInNet(myIpAddress(),"172.22.24.0","255.255.255.0"))&lt;BR /&gt;return "PROXY 172.22.24.10:8080";&lt;BR /&gt;else&lt;BR /&gt;return   "DIRECT";&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Can anyone help me&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 19 May 2008 19:04:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proxy-pac/m-p/4200879#M32625</guid>
      <dc:creator>Marco_113</dc:creator>
      <dc:date>2008-05-19T19:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy Pac</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proxy-pac/m-p/4200880#M32626</link>
      <description>&lt;!--!*#--&gt;It's been a very long time since I did these things, but I would have written it like this:&lt;BR /&gt;&lt;BR /&gt;function FindProxyForURL(url, host)&lt;BR /&gt;{&lt;BR /&gt;  if (isInNet(myIpAddress(), "172.22.24.0", "255.255.255.0")) {&lt;BR /&gt;    return "PROXY 172.22.24.10:8080";&lt;BR /&gt;  }&lt;BR /&gt;  else {&lt;BR /&gt;    return "DIRECT";&lt;BR /&gt;  }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;I am not 100% sure, but I seem to recall that the if...else structure was rather finicky about having the "extra" curly braces in there.&lt;BR /&gt;&lt;BR /&gt;Note that this file is not related to the squid proxy itself at all: it's for configuring the web browsers, to make them use the proxy automatically when necessary.&lt;BR /&gt;You must place this file on some web server (not necessarily the proxy machine itself) so that the browsers can access it, and the web server must be configured to inform the browser that the MIME type of the .pac file is "application/x-ns-proxy-autoconfig".&lt;BR /&gt;&lt;BR /&gt;You can use "lynx --dump --head &lt;YOUR-PROXY-AUTOCONFIG-URL&gt;" to verify that the MIME type of the file is configured correctly.&lt;BR /&gt;&lt;BR /&gt;MK&lt;/YOUR-PROXY-AUTOCONFIG-URL&gt;</description>
      <pubDate>Tue, 20 May 2008 00:14:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proxy-pac/m-p/4200880#M32626</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2008-05-20T00:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proxy Pac</title>
      <link>https://community.hpe.com/t5/operating-system-linux/proxy-pac/m-p/4200881#M32627</link>
      <description>Hi and thanls for reply,&lt;BR /&gt;my proxy.pac is &lt;BR /&gt;&lt;BR /&gt;function FindProxyForURL(url, host)&lt;BR /&gt;{&lt;BR /&gt;if (isInNet(myIpAddress(), "172.22.24.0", "255.255.255.0"))&lt;BR /&gt;return "PROXY 172.22.24.10:8080";&lt;BR /&gt;else&lt;BR /&gt;return "DIRECT";&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;It works correctly under my web server apache.&lt;BR /&gt;&lt;BR /&gt;The lynx command results:&lt;BR /&gt;&lt;BR /&gt;HTTP/1.1 200 OK&lt;BR /&gt;Date: Tue, 20 May 2008 10:05:35 GMT&lt;BR /&gt;Server: Apache/2.2.3 (Red Hat)&lt;BR /&gt;Last-Modified: Tue, 20 May 2008 10:02:13 GMT&lt;BR /&gt;ETag: "be525e-9c-92fff340"&lt;BR /&gt;Accept-Ranges: bytes&lt;BR /&gt;Content-Length: 156&lt;BR /&gt;Connection: close&lt;BR /&gt;Content-Type: application/x-ns-proxy-autoconfig&lt;BR /&gt;</description>
      <pubDate>Tue, 20 May 2008 09:07:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/proxy-pac/m-p/4200881#M32627</guid>
      <dc:creator>Marco_113</dc:creator>
      <dc:date>2008-05-20T09:07:08Z</dc:date>
    </item>
  </channel>
</rss>

