How to set proxy programatically

I re-examined the PAC support. See the following post: