Поиск по блогу

понедельник, 15 сентября 2014 г.

Читаю про .pac файлы для настройки и перключения прокси

Пробовал Proxy SwitchySharp, обнаружил там возможности работы с .pac файлами, оказалось, что и в браузерах есть такие фозможности. Здесь около двух десятков ссылок на материалы, которые я прочитал, но плохо запомнил. Так что пока не решил, как их лучше использовать... и в Fiddler тоже...
In []:
<br/>[Proxy SwitchySharp](https://chrome.google.com/webstore/detail/proxy-switchysharp/dpplabbmogkhghncfbfdeeokoefdjegm) - создается несколько Proxy profiles, можно импорировать (экспортировать) .pac файлы  
In []:
<br/>[Proxy PAC file: change proxy every set time interval?](http://stackoverflow.com/questions/9818135/proxy-pac-file-change-proxy-every-set-time-interval) - timeRange() can be used to specify different proxies for a specific time range. Note example would 
<br/>[Способ 2 support.microsoft.com](http://support.microsoft.com/kb/937151) - Способ 2: Используйте команду netsh для указания прокси-сервера вручную
<br/>[Proxy Auto Configuration (PAC)](http://habrahabr.ru/sandbox/19972/) - В главной функции могут быть вызваны следующие функции...
<br/>[A proxy auto-config (PAC) file](http://en.wikipedia.org/wiki/Proxy_auto-config)  defines how web browsers and other user agents can automatically choose the appropriate proxy server (access method) for fetching a given URL.
<br/>[Proxy Auto Config for Firefox (PAC)](https://calomel.org/proxy_auto_config.html) - Example 2: Block Ads and Porn with a Proxy Auto-Config PAC file
<br/>[ Web Proxy Auto-Discovery Protocol (WPAD)](http://en.wikipedia.org/wiki/Web_Proxy_Autodiscovery_Protocol) 
<br/>[Autoconfigure Scripts for Proxy Settings - May 13, 2013](http://www.craigjconsulting.com/proxypac.html)
<br/>[]()
<br/>[Stackoverflow pac file proxy location](http://stackoverflow.com/search?q=+pac+file+proxy+location)
<br/>[How to debug Htmlunit traffic with Fiddler using PAC (proxy auto-config)](http://stackoverflow.com/questions/6467104/how-to-debug-htmlunit-traffic-with-fiddler-using-pac-proxy-auto-config)
<br/>[]()
<br/>[Прокся.рф](http://xn--j1ahceh8f.xn--p1ai/SOCKS%D0%BF%D1%80%D0%BE%D0%BA%D1%81%D0%B8%D0%BB%D0%B8%D1%81%D1%82/%D0%90%D0%BC%D0%B5%D1%80%D0%B8%D0%BA%D0%B0%D0%BD%D1%81%D0%BA%D0%B8%D0%B5socks%D0%BF%D1%80%D0%BE%D0%BA%D1%81%D0%B8SOCKS%D0%9F%D1%80%D0%BE%D0%BA%D1%81%D0%B8%D0%A1%D0%A8%D0%90.aspx) - здесь списки можноскачать файл
In []:
Поиск на stackoverflow [fiddler proxy chain](http://stackoverflow.com/search?q=%5Bfiddler%5D+proxy+chain)
In []:
<br/>[Capturing Traffic from .NET Services with Fiddler](http://blogs.telerik.com/fiddler/posts/13-01-08/capturing-traffic-from-.net-services-with-fiddler)
<br/>[Configure fiddler to use proxy](http://stackoverflow.com/questions/19433604/configure-fiddler-to-use-proxy) - Fiddler can chain to any upstream proxy. By default, it chains to the proxy that Internet Explorer was configured to use when Fiddler started. But you can also manually set the upstream proxy in Fiddler by clicking Tools > Fiddler Options > Gateway.
<br/>[Error using FiddlerCore with proxy auto config file (PAC)](http://stackoverflow.com/questions/5552696/error-using-fiddlercore-with-proxy-auto-config-file-pac) - Yes, FiddlerCore works fine with PAC files. Also note that you'll see periodic "Failure to read ..." warnings from FiddlerCore even when nothing is wrong-- sometimes the browser opens sockets but doesn't use them
<br/>[telerik.com/fiddler](http://www.telerik.com/fiddler)
<br/>[How to debug Htmlunit traffic with Fiddler using PAC (proxy auto-config)](http://stackoverflow.com/questions/6467104/how-to-debug-htmlunit-traffic-with-fiddler-using-pac-proxy-auto-config)
<br/>[]()
<br/>[HtmlUnit](http://stackoverflow.com/questions/tagged/htmlunit) - HtmlUnit is a "headless browser". Which means that there is no browser GUI and it does no rendering. Though it has a CSS and JS engine to simulate a real browser. Primary purpose is testing and information extraction.
<br/>[Solved - Javascript and cookies are enabled, but they still aren't? Meta refresh?](http://stackoverflow.com/questions/25478129/solved-javascript-and-cookies-are-enabled-but-they-still-arent-meta-refresh)
I have an application using Htmlunit and need put Fiddler to intercept traffic, i read something about configure it via PAC (proxy auto-config) javascript file that comes with but i cant found the article again. How to configure Htmlunit via PAC ? Where the PAC javascript is located ?
"Fiddler is an HTTP Proxy running on port 8888 on your local PC. You can configure any application which accepts a HTTP Proxy to run through Fiddler so you can debug its traffic." (hookup) Try it:
In []:
WebClient wc = new WebClient(BrowserVersion.FIREFOX_2, "127.0.0.1", 8888);
OR "You can get the correct auto-configuration URL from Fiddler by clicking Tools / Fiddler Options / Connections, and clicking the 'Copy Browser Proxy Configuration URL' link." hookup Try it:
In []:
wc.getProxyConfig().setProxyAutoConfigUrl(strUrl);


Посты чуть ниже также могут вас заинтересовать

Комментариев нет:

Отправить комментарий