question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upstream proxy and PhantomJS

See original GitHub issue
Steps to reproduce the problem:
  1. Start mitmproxy with -U parameter (Upstream proxy)
  2. Connect to this proxy with PhantomJS
  3. Connection stucks/hangs
Any other comments? What have you tried so far?

Upstream proxy is working fine with Mozilla Firefox (after installing mitm.pem), and Chrome (sometimes, other times SSL certificate fails). Upstream proxy isn’t working with PhantomJS (with Selenium Python), with or without --ignore-ssl-errors (true|false). Don’t know if this issue is related to mitmproxy or PhantomJS.

System information
root@mitm:~# mitmproxy --version
Mitmproxy version: 2.0.2 (release version) 
Python version: 3.5.3
Platform: Linux-4.10.0-33-generic-i686-with-Ubuntu-17.04-zesty
SSL version: OpenSSL 1.0.2g  1 Mar 2016
Linux distro: Ubuntu 17.04 zesty

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
mhilscommented, Sep 2, 2017

mitmproxy --mode upstream:http://... --upstream-auth USER:PASS should work.

4reactions
mhilscommented, Sep 2, 2017

Ah, that’s the helpful bit I was missing. This suspiciously looks like you are hitting https://github.com/mitmproxy/mitmproxy/issues/2334! You can maybe try a recent snapshot from master (https://snapshots.mitmproxy.org/) to see if that fixes things for you 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to set HTTPS proxy in PhantomJS? - Stack Overflow
https proxy is not supported by PhantomJS. So best is to use http proxy or a socks proxy. --proxy-type= Specifies the proxy type, ......
Read more >
Command Line Interface - PhantomJS
--proxy-auth specifies the authentication information for the proxy, e.g. --proxy-auth=username:password ). --script-encoding=encoding sets the encoding used ...
Read more >
Squid | npm.io
Node.js implementation of a proxy server (think Squid) with support for SSL, authentication, upstream proxy chaining, and protocol tunneling.
Read more >
ssr-proxy - npm
SSR-Proxy — Server-Side Rendering Proxy. Prerender your single page app for better SEO and support on legacy browsers.
Read more >
Phantom Proxy server : r/sysadmin - Reddit
Update below. I'm trying to get rid of some phantom proxy server settings on multiple Win10 computers. We do have a proxy server, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found