Shark (2011-12-14 18:47): > Hi Juliusz, > > On Sun, Dec 11, 2011 at 04:01:11PM +0100, Juliusz Chroboczek wrote: > > I think your best bet would be to write a proxy.pac file that makes your > > browser only use the proxy for some URLs. > > > > http://en.wikipedia.org/wiki/Proxy_auto-config#The_PAC_file > > thanks for the hit, I wrote my PAC file and it works great with polipo. > > Now I have just another question: is there a way in polipo to > dynamically "understand" if there is connection or not? > > I don't want to set the "proxyOffline" to "yes" everytime I am offline > and to "no" when I return back online. > > Is there an automatic way to do this? > > Thanks.
Does your computer "dynamically understand" that there is no connection? Either way, I would define a keyboard shortcut to this command in Unix-like systems and manually press it whenever my computer loses connection: curl 'http://localhost:8123/polipo/config?' -d proxyOffline=true There is no bulletproof and automatic way to do what you want, but there are non-bulletproof ones, which depend heavily on your environment. -- -- Rogutės Sparnuotos ------------------------------------------------------------------------------ Cloud Computing - Latest Buzzword or a Glimpse of the Future? This paper surveys cloud computing today: What are the benefits? Why are businesses embracing it? What are its payoffs and pitfalls? http://www.accelacomm.com/jaw/sdnl/114/51425149/ _______________________________________________ Polipo-users mailing list Polipo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/polipo-users