proxy

Python pyppeteer proxy usage

倾然丶 夕夏残阳落幕 提交于 2020-06-17 02:37:26
问题 I want to run chromium browser using auth proxy. I have this code, but chromium does not connect via the proxy. Any suggestions please? import asyncio from pyppeteer import launch async def main(): browser = await launch({'http_proxy': 'ip:port', 'headless': False }) page = await browser.newPage() await page.goto('https://www.myip.com/') await page.authenticate({'username': 'user', 'password': 'passw'}) input() await browser.close() asyncio.get_event_loop().run_until_complete(main()) EDIT:

Python pyppeteer proxy usage

老子叫甜甜 提交于 2020-06-17 02:37:09
问题 I want to run chromium browser using auth proxy. I have this code, but chromium does not connect via the proxy. Any suggestions please? import asyncio from pyppeteer import launch async def main(): browser = await launch({'http_proxy': 'ip:port', 'headless': False }) page = await browser.newPage() await page.goto('https://www.myip.com/') await page.authenticate({'username': 'user', 'password': 'passw'}) input() await browser.close() asyncio.get_event_loop().run_until_complete(main()) EDIT:

Proxy authentication required (http error 407) with WinHttpRequest and proxy with integrated Windows authentication and https

二次信任 提交于 2020-06-16 17:08:53
问题 I'm trying to access an external website from my company network using WinHttpRequest from VBA. The company has a proxy server that requires integrated Windows authentication. The following code works if I try to access a URL with plain http, but I get http status code 407 - proxy authentication required if I try to access a URL with https. What do I need to do to make the code work with https? Sub a() Dim w As New WinHttp.WinHttpRequest 'set proxy w.SetProxy 2, "myproxy:8080" 'use integrated

Proxy authentication required (http error 407) with WinHttpRequest and proxy with integrated Windows authentication and https

橙三吉。 提交于 2020-06-16 17:08:32
问题 I'm trying to access an external website from my company network using WinHttpRequest from VBA. The company has a proxy server that requires integrated Windows authentication. The following code works if I try to access a URL with plain http, but I get http status code 407 - proxy authentication required if I try to access a URL with https. What do I need to do to make the code work with https? Sub a() Dim w As New WinHttp.WinHttpRequest 'set proxy w.SetProxy 2, "myproxy:8080" 'use integrated

Proxy authentication required (http error 407) with WinHttpRequest and proxy with integrated Windows authentication and https

我只是一个虾纸丫 提交于 2020-06-16 17:06:32
问题 I'm trying to access an external website from my company network using WinHttpRequest from VBA. The company has a proxy server that requires integrated Windows authentication. The following code works if I try to access a URL with plain http, but I get http status code 407 - proxy authentication required if I try to access a URL with https. What do I need to do to make the code work with https? Sub a() Dim w As New WinHttp.WinHttpRequest 'set proxy w.SetProxy 2, "myproxy:8080" 'use integrated

Python3, can't set socks proxy with chromedriver (socks.py type integer error)

萝らか妹 提交于 2020-06-16 04:30:48
问题 I'm trying to use a socks5 proxy via localhost with chromedriver and python3.5. However, I get the following error: loading Traceback (most recent call last): File "test.py", line 16, in <module> browser = webdriver.Chrome(chrome_options=options) File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/chrome/webdriver.py", line 62, in __init__ self.service.start() File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/common/service.py", line 97, in start if self.is

Angular proxy + corporate proxy

自古美人都是妖i 提交于 2020-06-12 13:32:28
问题 I have Angular project with next proxy: const PROXY_CONFIG = { "/teploset": { "target": "http://95.1.0.3:8080/", "secure": false, "bypass": function (req, res, proxyOptions) { console.log("1"); }, "changeOrigin": true } } module.exports = PROXY_CONFIG; I need proxy because of CORS issue when requests go to back-end. Everything works good at home, but problems are at work where we use corporate proxy. So I get next error: [HPM] Error occurred while trying to proxy request /teploset/login from

Angular proxy + corporate proxy

主宰稳场 提交于 2020-06-12 13:27:31
问题 I have Angular project with next proxy: const PROXY_CONFIG = { "/teploset": { "target": "http://95.1.0.3:8080/", "secure": false, "bypass": function (req, res, proxyOptions) { console.log("1"); }, "changeOrigin": true } } module.exports = PROXY_CONFIG; I need proxy because of CORS issue when requests go to back-end. Everything works good at home, but problems are at work where we use corporate proxy. So I get next error: [HPM] Error occurred while trying to proxy request /teploset/login from

Add your javascript to any page (using proxy or something else)

强颜欢笑 提交于 2020-06-11 05:49:07
问题 What I want to do is be able to see how it will look any website with my javascript attached . I want to create something like selectorgadget working on any website. The first idea is to use a proxy (eg privoxy) and define a regular expression changing in html: </head> to <script src="http://myserver.com/my_javascript.js"></script></head> . It works, but in such case, I need to set proxy in my browser. And it is not cool because It visible only for me. Another idea is to write a website that

How to set nonProxyHosts for a SOCKS proxy

别说谁变了你拦得住时间么 提交于 2020-06-09 11:59:32
问题 I want to set the nonProxyHosts list for a SOCKS5 proxy, i.e. the list of hostnames to which a direct connection should be used. As the oracle docs describe, there are options named http.nonProxyHosts and ftp.nonProxyHosts to set proxy exclusions for HTTP and FTP, but there is no specific setting for SOCKS proxies. I tried http.nonProxyHosts , but this doesn't affect SOCKS connections. The SOCKS proxy is set up via: System.setProperty("socksProxyHost", "192.168.10.10"); System.setProperty(