ariya / phantomjs

Scriptable Headless Browser
http://phantomjs.org
BSD 3-Clause "New" or "Revised" License
29.47k stars 5.76k forks source link

Remote debugger does not work when using http proxy #10982

Closed molnarg closed 4 years ago

molnarg commented 11 years ago

csir...@gmail.com commented:

Which version of PhantomJS are you using? Tip: run 'phantomjs --version'.

1.8.1

What steps will reproduce the problem?

  1. Run 'phantomjs --remote-debugger-port=9000 --remote-debugger-autorun=yes program.coffee'
  2. Open localhost:9000 in browser: it works like expected
  3. Run 'phantomjs --remote-debugger-port=9000 --remote-debugger-autorun=yes --proxy-type=http --proxy=localhost:8080 phantom.coffee'
  4. Open localhost:9000 in browser: it doesnt work.

What is the expected output? What do you see instead? Remote debugging should work even when using http proxy.

Which operating system are you using? Linux x64.

Did you use binary PhantomJS or did you compile it from source? Binary

Please provide any additional information below.

Disclaimer: This issue was migrated on 2013-03-15 from the project's former issue tracker on Google Code, Issue #982. :star2:   2 people had starred this issue at the time of migration.

simondean commented 11 years ago

This affects Windows too. This issue combined with https://github.com/ariya/phantomjs/issues/10314 makes is quite difficult to get remote debugging working on any PC without direct internet access.

simondean commented 11 years ago

Does anyone have any pointers for where in the codebase to look for the bug?

JamesMGreene commented 11 years ago

@simondean: Starts here: https://github.com/ariya/phantomjs/blob/1.9.0/src/phantom.cpp#L226

prikha commented 10 years ago

On linux ubuntu x64 and phantomjs 1.9.2 - I`m strugling with this issue too. Sometimes i need phantomjs work as a webdriver through proxy. But it does not seem to work. phantomjs --webdriver 9419 --proxy proxy_ip does not get any instructions done.

spyjo commented 8 years ago

I can confirm this issue is still there in phantomjs 2.0

liebig commented 8 years ago

Issue still exists (Windows 7, 64bit). Any news for this?

tyssiwac commented 7 years ago

I´m also facing this issue on Windows 10 64bit, PhantomJS 2.1.1 - does anyone have a workaround or know how to fix it?

stale[bot] commented 4 years ago

Due to our very limited maintenance capacity (see #14541 for more details), we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed. In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!